Commit 8f877b7e authored by Miquel Raynal's avatar Miquel Raynal
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220314152336.75447-1-miquel.raynal@bootlin.com
parent 5a368fb6
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -48,6 +48,7 @@ config MTD_NAND_ECC_SW_BCH


config MTD_NAND_ECC_MXIC
config MTD_NAND_ECC_MXIC
	bool "Macronix external hardware ECC engine"
	bool "Macronix external hardware ECC engine"
	depends on HAS_IOMEM
	select MTD_NAND_ECC
	select MTD_NAND_ECC
	help
	help
	  This enables support for the hardware ECC engine from Macronix.
	  This enables support for the hardware ECC engine from Macronix.