aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/quirks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index ce0985615133..e915a17b36c3 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2074,11 +2074,12 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4375,
2074 2074
2075#endif /* CONFIG_PCI_MSI */ 2075#endif /* CONFIG_PCI_MSI */
2076 2076
2077static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, struct pci_fixup *end) 2077static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f,
2078 struct pci_fixup *end)
2078{ 2079{
2079 while (f < end) { 2080 while (f < end) {
2080 if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && 2081 if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) &&
2081 (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { 2082 (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) {
2082 dev_dbg(&dev->dev, "calling %pF\n", f->hook); 2083 dev_dbg(&dev->dev, "calling %pF\n", f->hook);
2083 f->hook(dev); 2084 f->hook(dev);
2084 } 2085 }