]> git.sur5r.net Git - u-boot/blobdiff - cmd/mtdparts.c
mtd: nand: Rename nand.h into rawnand.h
[u-boot] / cmd / mtdparts.c
index 6e12275b4083fd3b7d33d762d243f4411abd02a1..3169c33265ce818aa46d93bd55afe49ae80fdd11 100644 (file)
@@ -81,7 +81,7 @@
 #include <linux/mtd/mtd.h>
 
 #if defined(CONFIG_CMD_NAND)
-#include <linux/mtd/nand.h>
+#include <linux/mtd/rawnand.h>
 #include <nand.h>
 #endif
 
@@ -1751,6 +1751,7 @@ int mtdparts_init(void)
        /* save it for later parsing, cannot rely on current partition pointer
         * as 'partition' variable may be updated during init */
        memset(tmp_parts, 0, sizeof(tmp_parts));
+       memset(tmp_ep, 0, sizeof(tmp_ep));
        if (current_partition)
                strncpy(tmp_ep, current_partition, PARTITION_MAXLEN);