tpm: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 2 Aug 2015 09:08:47 +0000 (11:08 +0200)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Oct 2015 23:00:40 +0000 (01:00 +0200)
commiteb6301160dde0227ac27c6ec2a0b57054d88e398
tree4eb20b0f18f945c196ae2dac6497716c50b5df76
parent049e6dde7e57f0054fdc49102e7ef4830c698b46
tpm: 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>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/st33zp24/Kconfig