|
[PATCH] serial: handle pci_enable_device() failure upon resume: msg#00026linux.serial
Signed-off-by: Jeff Garzik <jeff@xxxxxxxxxx> --- drivers/serial/8250_pci.c | 8 ++++++-- diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index 4d0ff8f..aa96e94 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c @@ -1810,16 +1810,20 @@ static int pciserial_resume_one(struct p pci_restore_state(dev); if (priv) { + int rc; + /* * The device may have been disabled. Re-enable it. */ - pci_enable_device(dev); + rc = pci_enable_device(dev); + if (rc) + return rc; pciserial_resume_ports(priv); } return 0; } -#endif +#endif /* CONFIG_PM */ static struct pci_device_id serial_pci_tbl[] = { { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960, |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | This Watch is in spades: 00026, Sheldon |
|---|---|
| Next by Date: | Re: [PATCH] serial: handle pci_enable_device() failure upon resume: 00026, Russell King |
| Previous by Thread: | This Watch is in spadesi: 00026, Sheldon |
| Next by Thread: | Re: [PATCH] serial: handle pci_enable_device() failure upon resume: 00026, Russell King |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |