Skip to content

Commit

Permalink
m68k/PCI: Remove redundant call of pci_bus_add_devices()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiang Liu authored and Bjorn Helgaas committed Jun 14, 2013
1 parent 70efde2 commit d9e6ba5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/m68k/platform/coldfire/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d9e6ba5

Please sign in to comment.