]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/nand_util.c
drivers/mtd/nand: Move conditional compilation to Makefile
[u-boot] / drivers / mtd / nand / nand_util.c
index 02fe914db8b2e8f89a102ccda757b32a247cd7c1..22820d55d02c64b93ac6b17b62c6b93744bca870 100644 (file)
@@ -31,9 +31,6 @@
  */
 
 #include <common.h>
-
-#if defined(CONFIG_CMD_NAND) && !defined(CFG_NAND_LEGACY)
-
 #include <command.h>
 #include <watchdog.h>
 #include <malloc.h>
@@ -606,5 +603,3 @@ int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
 
        return 0;
 }
-
-#endif /* defined(CONFIG_CMD_NAND) && !defined(CFG_NAND_LEGACY) */