From: Rafael J. Wysocki Date: Wed, 9 Sep 2009 21:51:27 +0000 (+0200) Subject: PCI PM: Return error codes from pci_pm_resume() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=999cce4a52d5abdda5d2cec6bac241899bc19e4c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index c66dc4341fa..dbfc93cb5d0 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -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 */