On 01/02/2017 03:58 AM, Randy Dunlap wrote: > From: Randy Dunlap <[email protected]> > > 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 <[email protected]> > Reported-by: kbuild test robot <[email protected]> > Cc: Boris Brezillon <[email protected]> > Cc: Neil Armstrong <[email protected]> > Cc: Jeff Dike <[email protected]> > Cc: Richard Weinberger <[email protected]> > Cc: [email protected] > Cc: [email protected] > --- > 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. > >
Thanks Randy, Acked-by: Neil Armstrong <[email protected]>

