aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/bus.c1
-rw-r--r--drivers/pci/probe.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 748f8f3e9ff5..32e66a6f12d9 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -174,6 +174,7 @@ int pci_bus_add_device(struct pci_dev *dev)
174 * Can not put in pci_device_add yet because resources 174 * Can not put in pci_device_add yet because resources
175 * are not assigned yet for some devices. 175 * are not assigned yet for some devices.
176 */ 176 */
177 pci_fixup_device(pci_fixup_final, dev);
177 pci_create_sysfs_dev_files(dev); 178 pci_create_sysfs_dev_files(dev);
178 179
179 dev->match_driver = true; 180 dev->match_driver = true;
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 43ece5d41d36..67cd04575e2e 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1341,7 +1341,6 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
1341 list_add_tail(&dev->bus_list, &bus->devices); 1341 list_add_tail(&dev->bus_list, &bus->devices);
1342 up_write(&pci_bus_sem); 1342 up_write(&pci_bus_sem);
1343 1343
1344 pci_fixup_device(pci_fixup_final, dev);
1345 ret = pcibios_add_device(dev); 1344 ret = pcibios_add_device(dev);
1346 WARN_ON(ret < 0); 1345 WARN_ON(ret < 0);
1347 1346