staging/wilc: fix Kconfig dependencies, second try
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Oct 2015 20:45:39 +0000 (22:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:03:05 +0000 (22:03 -0700)
commitbcc43a4b5ed75285aeacf2cf8d9b96d6379fb429
tree216172279033b8ad90d6a7ea1521e8cb3e2edd30
parent92af89d37c415c61c676bb28ae7facdef1821477
staging/wilc: fix Kconfig dependencies, second try

My first attempt to fix the Kconfig logic for wilc1000 was incomplete,
as it missed the case where SPI is built-in while SDIO is modular
and wilc1000 is configured as built-in in SPI mode (or vice versa),
which would still lead to a link failure.

This works around the problem by adding an intermediate Kconfig
symbol "WILC1000_DRIVER" that controls visibility of the SDIO and
SPI sub-drivers, so we can control the dependencies better.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 9535ebc5e9cc ("staging/wilc1000: fix Kconfig dependencies")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/Kconfig