Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

unicore32/PCI: Remove redundant call of pci_bus_add_devices()

pci_scan_bus() has called pci_bus_add_devices() already, so remove the
redundant call of pci_bus_add_devices(). subsys_init() callbacks will be
invoked before device_init() callbacks, so it should be safe to remove the
redundant calls.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Jiang Liu and committed by
Bjorn Helgaas
c13e396e d9e6ba5f

-5
-5
arch/unicore32/kernel/pci.c
··· 277 277 pci_bus_assign_resources(puv3_bus); 278 278 } 279 279 280 - /* 281 - * Tell drivers about devices found. 282 - */ 283 - pci_bus_add_devices(puv3_bus); 284 - 285 280 return 0; 286 281 } 287 282 subsys_initcall(pci_common_init);