diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-15 17:50:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-15 17:50:37 -0700 |
commit | a442ac512f36981182e66a427ad05f449ff6593b (patch) | |
tree | 8a99f2f4cb7f66e816163068c0c2c709c1852ac6 /drivers/pnp/quirks.c | |
parent | 7371fd11a6e2aed99895db4f100940fa5022f7fe (diff) | |
download | talos-op-linux-a442ac512f36981182e66a427ad05f449ff6593b.tar.gz talos-op-linux-a442ac512f36981182e66a427ad05f449ff6593b.zip |
Clean up 'print_fn_descriptor_symbol()' types
Everybody wants to pass it a function pointer, and in fact, that is what
you _must_ pass it for it to make sense (since it knows that ia64 and
ppc64 use descriptors for function pointers and fetches the actual
address from there).
So don't make the argument be a 'unsigned long' and force everybody to
add a cast.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/quirks.c')
-rw-r--r-- | drivers/pnp/quirks.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index ffdb12a59c40..e2b7de4cb05e 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c @@ -331,8 +331,7 @@ void pnp_fixup_device(struct pnp_dev *dev) continue; #ifdef DEBUG dev_dbg(&dev->dev, "%s: calling ", f->id); - print_fn_descriptor_symbol("%s\n", - (unsigned long) f->quirk_function); + print_fn_descriptor_symbol("%s\n", f->quirk_function); #endif f->quirk_function(dev); } |