Skip to content

Commit 8f877b7

Browse files
committed
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
1 parent 5a368fb commit 8f877b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mtd/nand/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ config MTD_NAND_ECC_SW_BCH
4848

4949
config MTD_NAND_ECC_MXIC
5050
bool "Macronix external hardware ECC engine"
51+
depends on HAS_IOMEM
5152
select MTD_NAND_ECC
5253
help
5354
This enables support for the hardware ECC engine from Macronix.

0 commit comments

Comments
 (0)