summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/cs553x_nand.c
diff options
context:
space:
mode:
authorManish Katiyar <mkatiyar@gmail.com>2008-10-14 22:13:29 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-10-18 15:39:17 +0400
commit6b8520296d67622dfa225436ef325f7dfd6ece8e (patch)
tree03457aad3c14b6ee6a0d889acf9a15bbf15b7e2e /drivers/mtd/nand/cs553x_nand.c
parent5bf1723723487ddb0b9c9641b6559da96b27cc93 (diff)
downloadlinux-6b8520296d67622dfa225436ef325f7dfd6ece8e.tar.xz
[MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c
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>
Diffstat (limited to 'drivers/mtd/nand/cs553x_nand.c')
-rw-r--r--drivers/mtd/nand/cs553x_nand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mtd/nand/cs553x_nand.c
index 3370a800fd36..9f1b451005ca 100644
--- a/drivers/mtd/nand/cs553x_nand.c
+++ b/drivers/mtd/nand/cs553x_nand.c
@@ -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())