Skip to content

Commit 9a9745c

Browse files
Andreas BießmannDavid Woodhouse
authored andcommitted
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>
1 parent 8ae6641 commit 9a9745c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/atmel_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
364364
}
365365
}
366366

367-
#ifdef CONFIG_MTD_PARTITIONS
367+
#ifdef CONFIG_MTD_CMDLINE_PARTS
368368
static const char *part_probes[] = { "cmdlinepart", NULL };
369369
#endif
370370

0 commit comments

Comments
 (0)