mtd: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 May 2015 16:32:29 +0000 (18:32 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 20 May 2015 22:50:24 +0000 (15:50 -0700)
commitf650ce24b320d061ab1ff7023cd9abee773d9672
tree7369785e7a1ca297238f507fb185aeceb24f235e
parent0d17fc3e998357469700e0782d253c31a6997505
mtd: 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>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/Kconfig
drivers/mtd/nand/Kconfig