Fix JFFS2 support for legacy NAND driver.
[oweals/u-boot.git] / drivers / nand / nand_ecc.c
index 6e11c22858c3d3b73db913e2b53750f912c90f51..f33be9655d36150cefadc990f88a8b4b6cf8f077 100644 (file)
@@ -37,8 +37,9 @@
 
 #include <common.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_NAND)
+#if (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
 
+#include<linux/mtd/mtd.h>
 /*
  * Pre-calculated 256-way 1 byte column parity
  */