mtd: denali: make MTD_NAND_DENALI_DT dependent on OF

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 12 15:59:28 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0ed6ca3a22f871fdb7335194f6488d14b2dad96a
Commit:     0ed6ca3a22f871fdb7335194f6488d14b2dad96a
Parent:     44991b3d19cd71eabe68019ae7cb91df0c929614
Author:     Masahiro Yamada <yamada.masahiro at socionext.com>
AuthorDate: Wed Dec 16 14:00:09 2015 +0900
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Dec 18 18:20:41 2015 -0800

    mtd: denali: make MTD_NAND_DENALI_DT dependent on OF
    
    The build passes even if CONFIG_OF is undefined, but it makes sense
    to let it depend on OF.
    
    Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 6c71f62..95b8d2b 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -55,7 +55,7 @@ config MTD_NAND_DENALI_PCI
 config MTD_NAND_DENALI_DT
 	tristate "Support Denali NAND controller as a DT device"
 	select MTD_NAND_DENALI
-	depends on HAS_DMA && HAVE_CLK
+	depends on HAS_DMA && HAVE_CLK && OF
 	help
 	  Enable the driver for NAND flash on platforms using a Denali NAND
 	  controller as a DT device.



More information about the linux-mtd-cvs mailing list