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

m68k/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.

[bhelgaas: split unicore32 into a separate patch]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Greg Ungerer <gerg@uclinux.org>

authored by

Jiang Liu and committed by
Bjorn Helgaas
d9e6ba5f 70efde2a

-1
-1
arch/m68k/platform/coldfire/pci.c
··· 320 320 pci_bus_size_bridges(rootbus); 321 321 pci_bus_assign_resources(rootbus); 322 322 pci_enable_bridges(rootbus); 323 - pci_bus_add_devices(rootbus); 324 323 return 0; 325 324 } 326 325