From: Andreas Bießmann Date: Thu, 5 Aug 2010 10:38:41 +0000 (+0200) Subject: mtd: atmel_nand: fix warning: 'part_probes' defined but not used X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9a9745c363277cc4e3a1d3e77b4814fbc2685a73;p=linux-beck.git mtd: atmel_nand: fix warning: 'part_probes' defined but not used This patch fixes drivers/mtd/nand/atmel_nand.c:372: warning: 'part_probes' defined but not used which is issued when CONFIG_MTD_PARTITIONS is defined but CONFIG_MTD_CMDLINE_PARTS not. Signed-off-by: Andreas Bießmann Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 04d30887ca7f..ccce0f03b5dc 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -364,7 +364,7 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode) } } -#ifdef CONFIG_MTD_PARTITIONS +#ifdef CONFIG_MTD_CMDLINE_PARTS static const char *part_probes[] = { "cmdlinepart", NULL }; #endif