mtd: nand: Drop useless 'depends on' in Kconfig
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 00:25:08 +0000 (02:25 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:03 +0000 (08:35 +0200)
Both OneNAND and raw NAND bits can't be compiled if MTD is disabled
because of the if/endif logic in drivers/mtd/Kconfig. There is no need
for an extra "depends on MTD" in their respective Kconfig files.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200529002517.3546-12-miquel.raynal@bootlin.com
drivers/mtd/nand/onenand/Kconfig
drivers/mtd/nand/raw/Kconfig

index 572b8fe69abb5d6e45689f290bbfd0bf9a907ee6..1a0e65bc246e1203fcad74ec791fdd06080297c2 100644 (file)
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig MTD_ONENAND
        tristate "OneNAND Device Support"
-       depends on MTD
        depends on HAS_IOMEM
        help
          This enables support for accessing all type of OneNAND flash
index 113f61052269212632ade246c660917cb6595b49..85280e327bfe802d68cfcf6e663ac14bdb6aa456 100644 (file)
@@ -12,7 +12,6 @@ config MTD_NAND_ECC_SW_HAMMING_SMC
 
 menuconfig MTD_RAW_NAND
        tristate "Raw/Parallel NAND Device Support"
-       depends on MTD
        select MTD_NAND_CORE
        select MTD_NAND_ECC_SW_HAMMING
        help