memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 9 Jul 2018 20:09:45 +0000 (22:09 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Jul 2018 21:14:11 +0000 (23:14 +0200)
It just makes maintainers' life easier by allowing them to compile-test
this driver without having MACH_JZ4780 enabled.

We also need to add a dependency on HAS_IOMEM to make sure the
driver compiles correctly.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/memory/Kconfig

index 78457ab2cbc478ae83f69633320240d3937d08eb..a642552dfdc969872145fd4ad7f8daecfc26cd4c 100644 (file)
@@ -122,7 +122,8 @@ config FSL_IFC
 config JZ4780_NEMC
        bool "Ingenic JZ4780 SoC NEMC driver"
        default y
-       depends on MACH_JZ4780
+       depends on MACH_JZ4780 || COMPILE_TEST
+       depends on HAS_IOMEM
        help
          This driver is for the NAND/External Memory Controller (NEMC) in
          the Ingenic JZ4780. This controller is used to handle external