diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-07-09 01:58:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 20:43:52 -0400 |
commit | 20d516602c022997feb24a9f1a806fc986b9e4e8 (patch) | |
tree | cf74447266832d62cdb38e7ca29532c65848b60e /drivers/pci/pcie/portdrv.h | |
parent | 6397c75cbc4d7dbc3d07278b57c82a47dafb21b5 (diff) |
PCIE: check and return bus_register errors
Have pcie_port_bus_register() notice and return errors.
Mark it __must_check so that its caller(s) must check its return value.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/pcie/portdrv.h')
-rw-r--r-- | drivers/pci/pcie/portdrv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h index 1d317d22ee89..67fcd176babd 100644 --- a/drivers/pci/pcie/portdrv.h +++ b/drivers/pci/pcie/portdrv.h | |||
@@ -39,7 +39,7 @@ extern int pcie_port_device_suspend(struct pci_dev *dev, pm_message_t state); | |||
39 | extern int pcie_port_device_resume(struct pci_dev *dev); | 39 | extern int pcie_port_device_resume(struct pci_dev *dev); |
40 | #endif | 40 | #endif |
41 | extern void pcie_port_device_remove(struct pci_dev *dev); | 41 | extern void pcie_port_device_remove(struct pci_dev *dev); |
42 | extern void pcie_port_bus_register(void); | 42 | extern int pcie_port_bus_register(void); |
43 | extern void pcie_port_bus_unregister(void); | 43 | extern void pcie_port_bus_unregister(void); |
44 | 44 | ||
45 | #endif /* _PORTDRV_H_ */ | 45 | #endif /* _PORTDRV_H_ */ |