]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Make pci_bus_add_device() void
authorYijing Wang <wangyijing@huawei.com>
Fri, 30 May 2014 03:01:03 +0000 (11:01 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 May 2014 15:34:27 +0000 (09:34 -0600)
commit2c54034b681dc4d251bb04959ce1df5174ddb2b9
tree2f296b5a88e4e794fb48d4c22c8108ce6f671bbc
parent521b30528f9ffe8bf5336d6dbebc57fbaa323018
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>
drivers/edac/i82875p_edac.c
drivers/pci/bus.c
drivers/pci/iov.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/eeepc-laptop.c
include/linux/pci.h