All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] atmel_nand: Fix warning: 'part_probes' defined but not used
@ 2010-07-14  9:17 ` Andreas Bießmann
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Bießmann @ 2010-07-14  9:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mtd, David Woodhouse, Andreas Bießmann

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>
---
 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 04d3088..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
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-05 11:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14  9:17 [PATCH] atmel_nand: Fix warning: 'part_probes' defined but not used Andreas Bießmann
2010-07-14  9:17 ` Andreas Bießmann
2010-08-05 10:38 ` Andreas Bießmann
2010-08-05 10:38   ` Andreas Bießmann
2010-08-05 10:50   ` Artem Bityutskiy
2010-08-05 10:50     ` Artem Bityutskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.