Cleanup nand_info[] declaration.
[pandora-u-boot.git] / fs / jffs2 / jffs2_1pass.c
index 69f53ea..8630334 100644 (file)
@@ -164,9 +164,6 @@ static struct part_info *current_part;
 /* this one defined in nand_legacy.c */
 int read_jffs2_nand(size_t start, size_t len,
                size_t * retlen, u_char * buf, int nanddev);
-#else
-/* info for NAND chips, defined in drivers/mtd/nand/nand.c */
-extern nand_info_t nand_info[];
 #endif
 
 #define NAND_PAGE_SIZE 512
@@ -185,11 +182,7 @@ static int read_nand_cached(u32 off, u32 size, u_char *buf)
 {
        struct mtdids *id = current_part->dev->id;
        u32 bytes_read = 0;
-#if defined(CFG_NAND_LEGACY)
        size_t retlen;
-#else
-       ulong retlen;
-#endif
        int cpy_bytes;
 
        while (bytes_read < size) {