Skip to content

Commit

Permalink
unicore32/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.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Jiang Liu authored and Bjorn Helgaas committed Jun 14, 2013
1 parent d9e6ba5 commit c13e396
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/unicore32/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,6 @@ static int __init pci_common_init(void)
pci_bus_assign_resources(puv3_bus);
}

/*
* Tell drivers about devices found.
*/
pci_bus_add_devices(puv3_bus);

return 0;
}
subsys_initcall(pci_common_init);
Expand Down

0 comments on commit c13e396

Please sign in to comment.