mtd: tmio_nand don't specify default parsing options
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 7 11:59:10 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d845c3eebc1efea59c74a63c028f36051a4d0d8f
Commit: d845c3eebc1efea59c74a63c028f36051a4d0d8f
Parent: 7221eb1296b3ebb0038dabeb88fe17a4fc62e920
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
AuthorDate: Sun May 29 20:17:10 2011 +0400
Committer: Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:02:03 2011 +0300
mtd: tmio_nand don't specify default parsing options
Since 'cmdline, NULL' is now a default for parse_mtd_partitions, don't specify
this in every driver, instead pass NULL to force parse_mtd_partitions
to use default.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
drivers/mtd/nand/tmio_nand.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
index 11e8371..b6ffad6 100644
--- a/drivers/mtd/nand/tmio_nand.c
+++ b/drivers/mtd/nand/tmio_nand.c
@@ -121,9 +121,6 @@ struct tmio_nand {
#define mtd_to_tmio(m) container_of(m, struct tmio_nand, mtd)
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-static const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
/*--------------------------------------------------------------------------*/
@@ -461,9 +458,7 @@ static int tmio_probe(struct platform_device *dev)
goto err_scan;
}
/* Register the partitions */
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- nbparts = parse_mtd_partitions(mtd, part_probes, &parts, 0);
-#endif
+ nbparts = parse_mtd_partitions(mtd, NULL, &parts, 0);
if (nbparts <= 0 && data) {
parts = data->partition;
nbparts = data->num_partitions;
More information about the linux-mtd-cvs
mailing list