Merge branch 'master' of git://git.denx.de/u-boot-samsung
[oweals/u-boot.git] / fs / yaffs2 / yaffs_uboot_glue.c
index 6d8687148da586a1a758de288c3c3c0be298974f..f6630817d28a6d5f1bc16fb148dc0f3f6aeb0030 100644 (file)
@@ -190,7 +190,7 @@ void cmd_yaffs_devconfig(char *_mp, int flash_dev,
                goto err;
        }
 
-       chip =  mtd->priv;
+       chip =  mtd_to_nand(mtd);
 
        /* Check for any conflicts */
        yaffs_dev_rewind();
@@ -320,7 +320,7 @@ void read_a_file(char *fn)
                i++;
                if (i > 32) {
                        printf("\n");
-                       i = 0;;
+                       i = 0;
                }
        }
        printf("\n");