[PATCH v2 01/30] PCI: Rip out pci_bus_add_devices() from pci_scan_bus()

2015-01-20 Thread Yijing Wang
Pci_bus_add_devices() should not be placed in pci_scan_bus(). Now pci device will be added to driver core once its creation. All things left in pci_bus_add_devices() are driver attachment and other trivial sysfs things. Pci_scan_bus() should be the function responsible for scanning PCI devices,

[PATCH v2 01/30] PCI: Rip out pci_bus_add_devices() from pci_scan_bus()

2015-01-20 Thread Yijing Wang
Pci_bus_add_devices() should not be placed in pci_scan_bus(). Now pci device will be added to driver core once its creation. All things left in pci_bus_add_devices() are driver attachment and other trivial sysfs things. Pci_scan_bus() should be the function responsible for scanning PCI devices,