[MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c
authorManish Katiyar <mkatiyar@gmail.com>
Tue, 14 Oct 2008 18:13:29 +0000 (23:43 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 18 Oct 2008 11:39:17 +0000 (12:39 +0100)
Below patch fixes the following compilation warnings.
drivers/mtd/nand/cs553x_nand.c:293: warning: unused variable 'mtd_parts'
drivers/mtd/nand/cs553x_nand.c:292: warning: unused variable 'mtd_parts_nb'

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/cs553x_nand.c

index 3370a800fd3612fd43f6bb54d4cf8a36cbdf2f14..9f1b451005ca14f8ce73aaa3c64e087cf2e7e607 100644 (file)
@@ -289,8 +289,10 @@ static int __init cs553x_init(void)
        int i;
        uint64_t val;
 
+#ifdef CONFIG_MTD_PARTITIONS
        int mtd_parts_nb = 0;
        struct mtd_partition *mtd_parts = NULL;
+#endif
 
        /* If the CPU isn't a Geode GX or LX, abort */
        if (!is_geode())