mtd: nand: ecc: mxic: Fix compile test issue
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 14 Mar 2022 15:23:36 +0000 (16:23 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 14 Mar 2022 16:05:35 +0000 (17:05 +0100)
commit8f877b7eab9d60a9deef6beae95656b77d55ab75
tree2c780388e9a2cfb04caa84c4c227dcb4265de9fc
parent5a368fb65ad9aaf68f2bbe02d42969741317d44c
mtd: nand: ecc: mxic: Fix compile test issue

Avoid random build errors with architectures which do not select
HAS_IOMEM by depending on it in Kconfig.

This fixes the following warning:

/home/mraynal/0day/gcc-11.2.0-nolibc/s390-linux/bin/s390-linux-ld:
drivers/mtd/nand/ecc-mxic.o: in function `mxic_ecc_probe':
ecc-mxic.c:(.text+0x2244): undefined reference to `devm_platform_ioremap_resource'

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220314152336.75447-1-miquel.raynal@bootlin.com
drivers/mtd/nand/Kconfig