mtd: docg4: add missing HAS_IOMEM dependency

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:53 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e5570f0c873e3be68a66b479308f21d2dc280a1c
Commit:     e5570f0c873e3be68a66b479308f21d2dc280a1c
Parent:     9c95f11b9e743aa6134134a6dcf866a9d5661972
Author:     Peter Huewe <peterhuewe at gmx.de>
AuthorDate: Sat Sep 15 00:41:09 2012 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 15:56:59 2012 +0100

    mtd: docg4: add missing HAS_IOMEM dependency
    
    While building an allyesconfig for UML I received this error message(s):
     drivers/mtd/nand/docg4.c: In function 'probe_docg4':
     drivers/mtd/nand/docg4.c:1272:2: error: implicit declaration of function
     'ioremap' [-Werror=implicit-function-declaration]
     drivers/mtd/nand/docg4.c:1272:10: warning: assignment makes pointer from
     integer without a cast [enabled by default]
     drivers/mtd/nand/docg4.c:1327:2: error: implicit declaration of function
     'iounmap' [-Werror=implicit-function-declaration]
    
    which is caused by the missing implementations on UML.
    
    This patch adds this missing HAS_IOMEM dependency and prevents the driver from
    being build on platforms with no HAS_IOMEM
    
    Signed-off-by: Peter Huewe <peterhuewe at gmx.de>
    Acked-by: Mike Dunn <mikedunn at newsguy.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index baa3436..4883139 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -331,7 +331,7 @@ config MTD_NAND_DISKONCHIP_BBTWRITE
 
 config MTD_NAND_DOCG4
 	tristate "Support for DiskOnChip G4 (EXPERIMENTAL)"
-	depends on EXPERIMENTAL
+	depends on EXPERIMENTAL && HAS_IOMEM
 	select BCH
 	select BITREVERSE
 	help



More information about the linux-mtd-cvs mailing list