Commit e5570f0c authored by Peter Huewe's avatar Peter Huewe Committed by David Woodhouse

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: default avatarPeter Huewe <peterhuewe@gmx.de>
Acked-by: default avatarMike Dunn <mikedunn@newsguy.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 9c95f11b
...@@ -331,7 +331,7 @@ config MTD_NAND_DISKONCHIP_BBTWRITE ...@@ -331,7 +331,7 @@ config MTD_NAND_DISKONCHIP_BBTWRITE
config MTD_NAND_DOCG4 config MTD_NAND_DOCG4
tristate "Support for DiskOnChip G4 (EXPERIMENTAL)" tristate "Support for DiskOnChip G4 (EXPERIMENTAL)"
depends on EXPERIMENTAL depends on EXPERIMENTAL && HAS_IOMEM
select BCH select BCH
select BITREVERSE select BITREVERSE
help help
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment