Skip to content

Commit

Permalink
pnp: fix the fcpnp_driver declaration to only exist if CONFIG_PNP=y
Browse files Browse the repository at this point in the history
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 30d55e7
("hisax: depend on CONFIG_PNP, not __ISAPNP__")

Fixes an unused variable warning.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Howells authored and Linus Torvalds committed Jul 26, 2008
1 parent 999ed65 commit c485b46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/isdn/hisax/hisax_fcpcipnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,6 @@ static struct pnp_driver fcpnp_driver = {
.remove = __devexit_p(fcpnp_remove),
.id_table = fcpnp_ids,
};
#else
static struct pnp_driver fcpnp_driver;
#endif

static void __devexit fcpci_remove(struct pci_dev *pdev)
Expand Down

0 comments on commit c485b46

Please sign in to comment.