[PATCH 07/32] mtd: atmel_nand don't specify default parsing options

Dmitry Eremin-Solenikov
2011-06-06T09:16:34Z

drivers/mtd/nand/atmel_nand.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 7c35739..2e6c5b9 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -480,10 +480,6 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
}
}

-#ifdef CONFIG_MTD_CMDLINE_PARTS
-static const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
-
/*
* Probe for the NAND device.
*/
@@ -654,11 +650,9 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
goto err_scan_tail;
}

-#ifdef CONFIG_MTD_CMDLINE_PARTS
mtd->name = "atmel_nand";
- num_partitions = parse_mtd_partitions(mtd, part_probes,
+ num_partitions = parse_mtd_partitions(mtd, NULL,
&partitions, 0);
-#endif
if (num_partitions <= 0 && host->board->parts) {
partitions = host->board->parts;
num_partitions = host->board->num_parts;
--
1.7.4.4