Skip to content

Commit 4cd335d

Browse files
rogerqmiquelraynal
authored andcommitted
mtd: rawnand: omap2: Prevent invalid configuration and build error
We need to select MEMORY as well otherwise OMAP_GPMC will not be built. For simplicity let's select MEMORY and OMAP_GPMC unconditionally as this driver depends on OMAP_GPMC driver and uses symbols from there. Fixes: dbcb124 ("mtd: rawnand: omap2: Select GPMC device driver for ARCH_K3") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220118123525.8020-1-rogerq@kernel.org
1 parent 3dd8ba9 commit 4cd335d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/mtd/nand/raw/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ config MTD_NAND_OMAP2
4242
tristate "OMAP2, OMAP3, OMAP4 and Keystone NAND controller"
4343
depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
4444
depends on HAS_IOMEM
45-
select OMAP_GPMC if ARCH_K3
45+
select MEMORY
46+
select OMAP_GPMC
4647
help
4748
Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4
4849
and Keystone platforms.

0 commit comments

Comments
 (0)