From: Boris Brezillon Date: Thu, 5 Jul 2018 09:45:08 +0000 (+0200) Subject: mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y X-Git-Tag: for-linus-20180825~120^2~2^2~109 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=434bc2e148aa5a6052cbc038f485fa3284a477d0;p=linux-block.git mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y It just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_MXC enabled. We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly. Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index af0b3cd51c82..3565dc06593f 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -443,7 +443,8 @@ config MTD_NAND_VF610_NFC config MTD_NAND_MXC tristate "MXC NAND support" - depends on ARCH_MXC + depends on ARCH_MXC || COMPILE_TEST + depends on HAS_IOMEM help This enables the driver for the NAND flash controller on the MXC processors.