Skip to content

Commit

Permalink
rfkill: Allow compile test of GPIO consumers if !GPIOLIB
Browse files Browse the repository at this point in the history
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
geertu authored and jmberg-intel committed Aug 13, 2015
1 parent eb6d929 commit 3689099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/rfkill/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ config RFKILL_REGULATOR

config RFKILL_GPIO
tristate "GPIO RFKILL driver"
depends on RFKILL && GPIOLIB
depends on RFKILL
depends on GPIOLIB || COMPILE_TEST
default n
help
If you say yes here you get support of a generic gpio RFKILL
Expand Down

0 comments on commit 3689099

Please sign in to comment.