diff options
-rw-r--r-- | drivers/pci/quirks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 637903a2df3a..873125b725d4 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/acpi.h> | 23 | #include <linux/acpi.h> |
24 | #include <linux/kallsyms.h> | ||
24 | #include "pci.h" | 25 | #include "pci.h" |
25 | 26 | ||
26 | /* The Mellanox Tavor device gives false positive parity errors | 27 | /* The Mellanox Tavor device gives false positive parity errors |
@@ -1500,7 +1501,11 @@ static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, struct pci_f | |||
1500 | while (f < end) { | 1501 | while (f < end) { |
1501 | if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && | 1502 | if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && |
1502 | (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { | 1503 | (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { |
1503 | pr_debug("PCI: Calling quirk %p for %s\n", f->hook, pci_name(dev)); | 1504 | #ifdef DEBUG |
1505 | dev_dbg(&dev->dev, "calling quirk 0x%p", f->hook); | ||
1506 | print_fn_descriptor_symbol(": %s()\n", | ||
1507 | (unsigned long) f->hook); | ||
1508 | #endif | ||
1504 | f->hook(dev); | 1509 | f->hook(dev); |
1505 | } | 1510 | } |
1506 | f++; | 1511 | f++; |