[PATCH] mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM
Randy Dunlap
rdunlap at infradead.org
Sun Jan 1 18:58:27 PST 2017
From: Randy Dunlap <rdunlap at infradead.org>
Fix build errors on arch/um, which does not support HAS_IOMEM,
while the oxnas_nand.c driver uses interfaces that are
supplied by HAS_IOMEM.
(loadable module build:)
ERROR: "devm_ioremap_resource" [drivers/mtd/nand/oxnas_nand.ko] undefined!
or (built-in build:)
drivers/built-in.o: In function `oxnas_nand_probe':
drivers/mtd/nand/oxnas_nand.c:102: undefined reference to `devm_ioremap_resource'
Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
Reported-by: kbuild test robot <fengguang.wu at intel.com>
Cc: Boris Brezillon <boris.brezillon at free-electrons.com>
Cc: Neil Armstrong <narmstrong at baylibre.com>
Cc: Jeff Dike <jdike at addtoit.com>
Cc: Richard Weinberger <richard at nod.at>
Cc: user-mode-linux-devel at lists.sourceforge.net
Cc: linux-mtd at lists.infradead.org
---
drivers/mtd/nand/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- lnx-410-rc2.orig/drivers/mtd/nand/Kconfig
+++ lnx-410-rc2/drivers/mtd/nand/Kconfig
@@ -426,6 +426,7 @@ config MTD_NAND_ORION
config MTD_NAND_OXNAS
tristate "NAND Flash support for Oxford Semiconductor SoC"
+ depends on HAS_IOMEM
help
This enables the NAND flash controller on Oxford Semiconductor SoCs.
More information about the linux-mtd
mailing list