From: Randy Dunlap <rdun...@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 <rdun...@infradead.org>
Reported-by: kbuild test robot <fengguang...@intel.com>
Cc: Boris Brezillon <boris.brezil...@free-electrons.com>
Cc: Neil Armstrong <narmstr...@baylibre.com>
Cc:     Jeff Dike <jd...@addtoit.com>
Cc:     Richard Weinberger <rich...@nod.at>
Cc:     user-mode-linux-devel@lists.sourceforge.net
Cc:     linux-...@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.
 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to