Commit 2e532d68 authored by Linus Torvalds's avatar Linus Torvalds

{pci,pnp} quirks.c: don't use deprecated print_fn_descriptor_symbol()

I dunno how this missed Bjorn and his quest to use %pF in commit
c80cfb04 ("vsprintf: use new vsprintf
symbolic function pointer format"), but it did.

So use %pF in the two remaining places that still tried to print out
function pointers by hand.
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 52ad0964
...@@ -1561,8 +1561,7 @@ static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, struct pci_f ...@@ -1561,8 +1561,7 @@ static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, struct pci_f
if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && if ((f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) &&
(f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) {
#ifdef DEBUG #ifdef DEBUG
dev_dbg(&dev->dev, "calling "); dev_dbg(&dev->dev, "calling %pF\n", f->hook);
print_fn_descriptor_symbol("%s\n", f->hook);
#endif #endif
f->hook(dev); f->hook(dev);
} }
......
...@@ -338,8 +338,7 @@ void pnp_fixup_device(struct pnp_dev *dev) ...@@ -338,8 +338,7 @@ void pnp_fixup_device(struct pnp_dev *dev)
if (!compare_pnp_id(dev->id, f->id)) if (!compare_pnp_id(dev->id, f->id))
continue; continue;
#ifdef DEBUG #ifdef DEBUG
dev_dbg(&dev->dev, "%s: calling ", f->id); dev_dbg(&dev->dev, "%s: calling %pF\n", f->id, f->quirk_function);
print_fn_descriptor_symbol("%s\n", f->quirk_function);
#endif #endif
f->quirk_function(dev); f->quirk_function(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment