diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-29 23:01:03 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-30 11:34:27 -0400 |
commit | c893d133eaccdda2516a3e71cd05a7dac2e14b00 (patch) | |
tree | 2f296b5a88e4e794fb48d4c22c8108ce6f671bbc /include/linux/pci.h | |
parent | d97ffe236894856d08146390ef3fbe6448a8ac2b (diff) |
PCI: Make pci_bus_add_device() void
pci_bus_add_device() always returns 0, so there's no point in returning
anything at all. Make it a void function and remove the tests of the
return value from the callers.
[bhelgaas: changelog, remove unused "err" from i82875p_setup_overfl_dev()]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 322335aaa7e1..785149a6aec1 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -764,7 +764,7 @@ int pci_scan_slot(struct pci_bus *bus, int devfn); | |||
764 | struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn); | 764 | struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn); |
765 | void pci_device_add(struct pci_dev *dev, struct pci_bus *bus); | 765 | void pci_device_add(struct pci_dev *dev, struct pci_bus *bus); |
766 | unsigned int pci_scan_child_bus(struct pci_bus *bus); | 766 | unsigned int pci_scan_child_bus(struct pci_bus *bus); |
767 | int __must_check pci_bus_add_device(struct pci_dev *dev); | 767 | void pci_bus_add_device(struct pci_dev *dev); |
768 | void pci_read_bridge_bases(struct pci_bus *child); | 768 | void pci_read_bridge_bases(struct pci_bus *child); |
769 | struct resource *pci_find_parent_resource(const struct pci_dev *dev, | 769 | struct resource *pci_find_parent_resource(const struct pci_dev *dev, |
770 | struct resource *res); | 770 | struct resource *res); |