aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-05-29 12:17:12 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:04 -0400
commit3d4ae3b2eab1d95a944162b047533d74cfcb8def (patch)
treec3bf3fb39ccb0449cf0f7aa66672e6d8ab58bdd0 /drivers/mtd/onenand
parentabfc7d2b94e650c18965e62fe74e457b96b4865a (diff)
mtd: onenand/generic 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@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/generic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
index 2d70d354d846..bca1c496135f 100644
--- a/drivers/mtd/onenand/generic.c
+++ b/drivers/mtd/onenand/generic.c
@@ -30,8 +30,6 @@
30 */ 30 */
31#define DRIVER_NAME "onenand-flash" 31#define DRIVER_NAME "onenand-flash"
32 32
33static const char *part_probes[] = { "cmdlinepart", NULL, };
34
35struct onenand_info { 33struct onenand_info {
36 struct mtd_info mtd; 34 struct mtd_info mtd;
37 struct mtd_partition *parts; 35 struct mtd_partition *parts;
@@ -73,7 +71,7 @@ static int __devinit generic_onenand_probe(struct platform_device *pdev)
73 goto out_iounmap; 71 goto out_iounmap;
74 } 72 }
75 73
76 err = parse_mtd_partitions(&info->mtd, part_probes, &info->parts, 0); 74 err = parse_mtd_partitions(&info->mtd, NULL, &info->parts, 0);
77 if (err > 0) 75 if (err > 0)
78 mtd_device_register(&info->mtd, info->parts, err); 76 mtd_device_register(&info->mtd, info->parts, err);
79 else if (err <= 0 && pdata && pdata->parts) 77 else if (err <= 0 && pdata && pdata->parts)