]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/jffs2/jffs2_1pass.c
nand: Embed mtd_info in struct nand_chip
[karo-tx-uboot.git] / fs / jffs2 / jffs2_1pass.c
index ba038b11224d147197189210f4874cc463618666..f771e94f91eef40846e6264e264f09bcddb8d0a9 100644 (file)
@@ -195,7 +195,7 @@ static int read_nand_cached(u32 off, u32 size, u_char *buf)
                        }
 
                        retlen = NAND_CACHE_SIZE;
-                       if (nand_read(&nand_info[id->num], nand_cache_off,
+                       if (nand_read(nand_info[id->num], nand_cache_off,
                                                &retlen, nand_cache) != 0 ||
                                        retlen != NAND_CACHE_SIZE) {
                                printf("read_nand_cached: error reading nand off %#x size %d bytes\n",