power: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 2 Aug 2015 09:09:50 +0000 (11:09 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 5 Aug 2015 03:48:08 +0000 (05:48 +0200)
commit1e8b82c1ff3bc52c5e4265d66fe5c6da9a66e2e6
tree88cf33d112b87cc4c78932f9173c4b2810b39b56
parent63369b2b99d718ca2777bf8d71360de75888f05b
power: Allow compile test of GPIO consumers if !GPIOLIB

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 <geert@linux-m68k.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/Kconfig