mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Jan 5 10:59:01 PST 2017
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=f0fcdc506b76e924c60fa607bba5872ca4745476
Commit: f0fcdc506b76e924c60fa607bba5872ca4745476
Parent: a2724663494f7313f53da10d8c0a729c5e3c4dea
Author: Randy Dunlap <rdunlap at infradead.org>
AuthorDate: Sun Jan 1 18:58:27 2017 -0800
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon Jan 2 09:56:57 2017 +0100
mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM
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'
Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support")
Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
Reported-by: kbuild test robot <fengguang.wu at intel.com>
Acked-by: Neil Armstrong <narmstrong at baylibre.com>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 2f35ab5..9ce5dcb 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/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-cvs
mailing list