aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/quirks.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r--drivers/pci/quirks.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 6099facecd79..014227540ac9 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2572,6 +2572,19 @@ void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev)
2572 } 2572 }
2573 pci_do_fixups(dev, start, end); 2573 pci_do_fixups(dev, start, end);
2574} 2574}
2575
2576static int __devinit pci_apply_final_quirks(void)
2577{
2578 struct pci_dev *dev = NULL;
2579
2580 while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
2581 pci_fixup_device(pci_fixup_final, dev);
2582 }
2583
2584 return 0;
2585}
2586
2587device_initcall(pci_apply_final_quirks);
2575#else 2588#else
2576void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {} 2589void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {}
2577#endif 2590#endif