Commit c485b465 authored by David Howells's avatar David Howells Committed by Linus Torvalds

pnp: fix the fcpnp_driver declaration to only exist if CONFIG_PNP=y

Fix the fcpnp_driver declaration to only exist if CONFIG_PNP=y as it's
only accessed in that case.

The PNP=n variant was added by 30d55e71
("hisax: depend on CONFIG_PNP, not __ISAPNP__")

Fixes an unused variable warning.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Acked-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 999ed65a
...@@ -974,8 +974,6 @@ static struct pnp_driver fcpnp_driver = { ...@@ -974,8 +974,6 @@ static struct pnp_driver fcpnp_driver = {
.remove = __devexit_p(fcpnp_remove), .remove = __devexit_p(fcpnp_remove),
.id_table = fcpnp_ids, .id_table = fcpnp_ids,
}; };
#else
static struct pnp_driver fcpnp_driver;
#endif #endif
static void __devexit fcpci_remove(struct pci_dev *pdev) static void __devexit fcpci_remove(struct pci_dev *pdev)
......
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