Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Brian Norris
f650ce24 0d17fc3e

+2 -2
+1 -1
drivers/mtd/maps/Kconfig
··· 326 326 327 327 config MTD_GPIO_ADDR 328 328 tristate "GPIO-assisted Flash Chip Support" 329 - depends on GPIOLIB 329 + depends on GPIOLIB || COMPILE_TEST 330 330 depends on MTD_COMPLEX_MAPPINGS 331 331 help 332 332 Map driver which allows flashes to be partially physically addressed
+1 -1
drivers/mtd/nand/Kconfig
··· 76 76 77 77 config MTD_NAND_GPIO 78 78 tristate "GPIO assisted NAND Flash driver" 79 - depends on GPIOLIB 79 + depends on GPIOLIB || COMPILE_TEST 80 80 help 81 81 This enables a NAND flash driver where control signals are 82 82 connected to GPIO pins, and commands and data are communicated