aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2022-03-14 16:23:36 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2022-03-14 17:05:35 +0100
commit8f877b7eab9d60a9deef6beae95656b77d55ab75 (patch)
tree2c780388e9a2cfb04caa84c4c227dcb4265de9fc /drivers/mtd/nand
parentmtd: nand: mxic-ecc: make two read-only arrays static const (diff)
downloadlinux-dev-8f877b7eab9d60a9deef6beae95656b77d55ab75.tar.xz
linux-dev-8f877b7eab9d60a9deef6beae95656b77d55ab75.zip
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
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 8431292ff49d..9b249826ef93 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -48,6 +48,7 @@ config MTD_NAND_ECC_SW_BCH
config MTD_NAND_ECC_MXIC
bool "Macronix external hardware ECC engine"
+ depends on HAS_IOMEM
select MTD_NAND_ECC
help
This enables support for the hardware ECC engine from Macronix.