From: Jiang Liu Date: Sat, 25 May 2013 13:48:35 +0000 (+0800) Subject: m68k/PCI: Remove redundant call of pci_bus_add_devices() X-Git-Tag: accepted/tizen/common/20141203.182822~1936^2~2^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9e6ba5fed08b64f8dcabcc82d9706fd8ec1f121;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Bjorn Helgaas Acked-by: Greg Ungerer --- diff --git a/arch/m68k/platform/coldfire/pci.c b/arch/m68k/platform/coldfire/pci.c index 8572246..b33f97a 100644 --- a/arch/m68k/platform/coldfire/pci.c +++ b/arch/m68k/platform/coldfire/pci.c @@ -320,7 +320,6 @@ static int __init mcf_pci_init(void) pci_bus_size_bridges(rootbus); pci_bus_assign_resources(rootbus); pci_enable_bridges(rootbus); - pci_bus_add_devices(rootbus); return 0; }