mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 30d55e71a8
("hisax: depend on CONFIG_PNP, not __ISAPNP__")
Fixes an unused variable warning.
Signed-off-by: David Howells <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Cc: Karsten Keil <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
999ed65ad1
commit
c485b465a0
1 changed files with 0 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue