diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-10-12 12:48:43 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-10-12 14:42:04 +0100 |
commit | 8d86fb2c80ec376b35ae64ac858d406ae1d42a3f (patch) | |
tree | 66ae9941d9f9785fd75365c357b706ff2d31f67a /drivers/pci/quirks.c | |
parent | e0fc7e0b4b5e69616f10a894ab9afff3c64be74e (diff) | |
download | blackbird-obmc-linux-8d86fb2c80ec376b35ae64ac858d406ae1d42a3f.tar.gz blackbird-obmc-linux-8d86fb2c80ec376b35ae64ac858d406ae1d42a3f.zip |
Rename pci_init() to pci_apply_final_quirks(), move it to quirks.c
This function may have done more in the past, but all it does now is
apply the PCI_FIXUP_FINAL quirks. So name it sensibly and put it where
it belongs.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r-- | drivers/pci/quirks.c | 13 |
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) } pci_do_fixups(dev, start, end); } + +static int __devinit pci_apply_final_quirks(void) +{ + struct pci_dev *dev = NULL; + + while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { + pci_fixup_device(pci_fixup_final, dev); + } + + return 0; +} + +device_initcall(pci_apply_final_quirks); #else void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {} #endif |