mtd: cs553x: Fix dependencies for !HAS_IOMEM archs

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Mar 24 11:59:05 PDT 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=02c3b0bd69a537557484e46a5937874a2d2ad454
Commit:     02c3b0bd69a537557484e46a5937874a2d2ad454
Parent:     15c0be7bec002f9a529dd0966d0db96dde176fd0
Author:     Richard Weinberger <richard at nod.at>
AuthorDate: Mon Jan 25 23:24:20 2016 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Feb 1 09:37:03 2016 -0800

    mtd: cs553x: Fix dependencies for !HAS_IOMEM archs
    
    Not every arch has io memory nor can this driver ever work
    on UML/i386.
    So, unbreak the build by fixing the dependencies.
    
    Signed-off-by: Richard Weinberger <richard at nod.at>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 545d82b..b253654 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -311,6 +311,7 @@ config MTD_NAND_CAFE
 config MTD_NAND_CS553X
 	tristate "NAND support for CS5535/CS5536 (AMD Geode companion chip)"
 	depends on X86_32
+	depends on !UML && HAS_IOMEM
 	help
 	  The CS553x companion chips for the AMD Geode processor
 	  include NAND flash controllers with built-in hardware ECC



More information about the linux-mtd-cvs mailing list