summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorAndreas Bießmann <biessmann@corscience.de>2010-08-05 12:38:41 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-06 09:22:22 +0100
commit9a9745c363277cc4e3a1d3e77b4814fbc2685a73 (patch)
treeb15c55b2c3be98ed0ad65b4c16bddc6e3e560351 /drivers/mtd/nand
parent8ae664184c45def51ff0b61d4bd6c6671db6cb4f (diff)
downloadblackbird-op-linux-9a9745c363277cc4e3a1d3e77b4814fbc2685a73.tar.gz
blackbird-op-linux-9a9745c363277cc4e3a1d3e77b4814fbc2685a73.zip
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 <biessmann@corscience.de> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/atmel_nand.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud