]> www.infradead.org Git - users/willy/linux.git/commitdiff
mtd: rawnand: davinci: Always depends on TI_AEMIF
authorBastien Curutchet <bastien.curutchet@bootlin.com>
Wed, 4 Dec 2024 09:43:17 +0000 (10:43 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 24 Dec 2024 14:48:00 +0000 (15:48 +0100)
DAVINCI_NAND depends on TI_AEMIF only when ARCH_KEYSTONE is selected
while the NAND controller is also always a part of the AEMIF controller
on DaVinci SoCs.

Set a dependency on TI_AEMIF regardless of the selected architecture.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411020140.3wsKJOSB-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202411020957.X1T8T9ZR-lkp@intel.com/
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/Kconfig

index e3677bcaf0350ad8fdb479aec2bc56775b564426..b8035df8f732c2f2c7abc06bf27df1cbab01b8cb 100644 (file)
@@ -279,8 +279,8 @@ config MTD_NAND_SH_FLCTL
 
 config MTD_NAND_DAVINCI
        tristate "DaVinci/Keystone NAND controller"
-       depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST
-       depends on HAS_IOMEM
+       depends on COMPILE_TEST || ARCH_DAVINCI || ARCH_KEYSTONE
+       depends on HAS_IOMEM && TI_AEMIF
        help
          Enable the driver for NAND flash chips on Texas Instruments
          DaVinci/Keystone processors.