Skip to content

Commit 17c09ed

Browse files
Boris Brezillonmiquelraynal
authored andcommitted
mtd: rawnand: fsmc: 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 PLAT_SPEAR, ARCH_NOMADIK, ARCH_U8500 or MACH_U300 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> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent f55824c commit 17c09ed

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/mtd/nand/raw/Kconfig‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,9 @@ config MTD_NAND_JZ4780
501501

502502
config MTD_NAND_FSMC
503503
tristate "Support for NAND on ST Micros FSMC"
504-
depends on OF
505-
depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300
504+
depends on OF && HAS_IOMEM
505+
depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 || \
506+
COMPILE_TEST
506507
help
507508
Enables support for NAND Flash chips on the ST Microelectronics
508509
Flexible Static Memory Controller (FSMC)

0 commit comments

Comments
 (0)