OSDN Git Service

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)
commitc893d133eaccdda2516a3e71cd05a7dac2e14b00
tree2f296b5a88e4e794fb48d4c22c8108ce6f671bbc
parentd97ffe236894856d08146390ef3fbe6448a8ac2b
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