Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)