aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/parport/parport_serial.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c
index e06223cf6c26..90ea3b8b99b0 100644
--- a/drivers/parport/parport_serial.c
+++ b/drivers/parport/parport_serial.c
@@ -392,6 +392,7 @@ static int parport_serial_pci_suspend(struct pci_dev *dev, pm_message_t state)
392static int parport_serial_pci_resume(struct pci_dev *dev) 392static int parport_serial_pci_resume(struct pci_dev *dev)
393{ 393{
394 struct parport_serial_private *priv = pci_get_drvdata(dev); 394 struct parport_serial_private *priv = pci_get_drvdata(dev);
395 int err;
395 396
396 pci_set_power_state(dev, PCI_D0); 397 pci_set_power_state(dev, PCI_D0);
397 pci_restore_state(dev); 398 pci_restore_state(dev);
@@ -399,7 +400,12 @@ static int parport_serial_pci_resume(struct pci_dev *dev)
399 /* 400 /*
400 * The device may have been disabled. Re-enable it. 401 * The device may have been disabled. Re-enable it.
401 */ 402 */
402 pci_enable_device(dev); 403 err = pci_enable_device(dev);
404 if (err) {
405 printk(KERN_ERR "parport_serial: %s: error enabling "
406 "device for resume (%d)\n", pci_name(dev), err);
407 return err;
408 }
403 409
404 if (priv->serial) 410 if (priv->serial)
405 pciserial_resume_ports(priv->serial); 411 pciserial_resume_ports(priv->serial);