]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: nand: oxnas_nand: fix build errors on arch/um, require HAS_IOMEM
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 2 Jan 2017 02:58:27 +0000 (18:58 -0800)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 2 Jan 2017 08:56:57 +0000 (09:56 +0100)
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@infradead.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/Kconfig

index 2f35ab5426f86b05979c13209ea4356d29763604..9ce5dcb4abd0f5026384ed4e0466d1ddfa44c617 100644 (file)
@@ -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.