aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand-ecc-mxic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd/nand-ecc-mxic.h')
-rw-r--r--include/linux/mtd/nand-ecc-mxic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/nand-ecc-mxic.h b/include/linux/mtd/nand-ecc-mxic.h
index f3aa1ac82aed..b125926e458c 100644
--- a/include/linux/mtd/nand-ecc-mxic.h
+++ b/include/linux/mtd/nand-ecc-mxic.h
@@ -14,7 +14,7 @@
struct mxic_ecc_engine;
-#if IS_ENABLED(CONFIG_MTD_NAND_ECC_MXIC)
+#if IS_ENABLED(CONFIG_MTD_NAND_ECC_MXIC) && IS_REACHABLE(CONFIG_MTD_NAND_CORE)
struct nand_ecc_engine_ops *mxic_ecc_get_pipelined_ops(void);
struct nand_ecc_engine *mxic_ecc_get_pipelined_engine(struct platform_device *spi_pdev);