mtd: atmel_nand: fix warning: 'part_probes' defined but not used
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Aug 6 04:59:02 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9a9745c363277cc4e3a1d3e77b4814fbc2685a73
Commit: 9a9745c363277cc4e3a1d3e77b4814fbc2685a73
Parent: 8ae664184c45def51ff0b61d4bd6c6671db6cb4f
Author: Andreas Bießmann <biessmann at corscience.de>
AuthorDate: Thu Aug 5 12:38:41 2010 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Aug 6 09:22:22 2010 +0100
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 at corscience.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/atmel_nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 04d30887c..ccce0f0 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
More information about the linux-mtd-cvs
mailing list