]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
mtd: nand: denali: make NAND_DENALI unconfigurable option
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 6 Dec 2017 04:51:50 +0000 (13:51 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Dec 2017 15:36:11 +0000 (00:36 +0900)
denali.c has no driver entry in itself.  It makes sense only when
compiled together with denali_dt.c

Let NAND_DENALI_DT select NAND_DENALI, and hide NAND_DENALI from
the Kconfig menu.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/nand/Kconfig

index 47ec43500cb4c880f5d88f1049ce52c024bbbbe6..78a39abf7542e122e5c59be6dbb7cf07156c8913 100644 (file)
@@ -10,15 +10,14 @@ config SYS_NAND_SELF_INIT
          NAND initialization process.
 
 config NAND_DENALI
-       bool "Support Denali NAND controller"
+       bool
        select SYS_NAND_SELF_INIT
        imply CMD_NAND
-       help
-         Enable support for the Denali NAND controller.
 
 config NAND_DENALI_DT
        bool "Support Denali NAND controller as a DT device"
-       depends on NAND_DENALI && OF_CONTROL && DM
+       select NAND_DENALI
+       depends on OF_CONTROL && DM
        help
          Enable the driver for NAND flash on platforms using a Denali NAND
          controller as a DT device.