Skip to content

Commit

Permalink
PCI PM: Return error codes from pci_pm_resume()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Sep 14, 2009
1 parent fdcdaf6 commit 999cce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 999cce4

Please sign in to comment.