mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
PCI PM: Return error codes from pci_pm_resume()
Currently pci_pm_resume() always returns 0, which makes the error variable defined in there a bit pointless. Make pci_pm_resume() return error codes obtained from drivers' callbacks. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
fdcdaf6c4f
commit
999cce4a52
@ -722,7 +722,7 @@ static int pci_pm_resume(struct device *dev)
|
||||
pci_pm_reenable_device(pci_dev);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return error;
|
||||
}
|
||||
|
||||
#else /* !CONFIG_SUSPEND */
|
||||
|
Loading…
Reference in New Issue
Block a user