Commit 10f8a598 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

parport_serial: fix PCI must_checks

drivers/parport/parport_serial.c:402: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7e80d0d0
...@@ -392,6 +392,7 @@ static int parport_serial_pci_suspend(struct pci_dev *dev, pm_message_t state) ...@@ -392,6 +392,7 @@ static int parport_serial_pci_suspend(struct pci_dev *dev, pm_message_t state)
static int parport_serial_pci_resume(struct pci_dev *dev) static int parport_serial_pci_resume(struct pci_dev *dev)
{ {
struct parport_serial_private *priv = pci_get_drvdata(dev); struct parport_serial_private *priv = pci_get_drvdata(dev);
int err;
pci_set_power_state(dev, PCI_D0); pci_set_power_state(dev, PCI_D0);
pci_restore_state(dev); pci_restore_state(dev);
...@@ -399,7 +400,12 @@ static int parport_serial_pci_resume(struct pci_dev *dev) ...@@ -399,7 +400,12 @@ static int parport_serial_pci_resume(struct pci_dev *dev)
/* /*
* The device may have been disabled. Re-enable it. * The device may have been disabled. Re-enable it.
*/ */
pci_enable_device(dev); err = pci_enable_device(dev);
if (err) {
printk(KERN_ERR "parport_serial: %s: error enabling "
"device for resume (%d)\n", pci_name(dev), err);
return err;
}
if (priv->serial) if (priv->serial)
pciserial_resume_ports(priv->serial); pciserial_resume_ports(priv->serial);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment