dect
/
linux-2.6
Archived
13
0
Fork 0

mtd: onenand/omap2 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>
This commit is contained in:
Dmitry Eremin-Solenikov 2011-05-29 20:17:13 +04:00 committed by Artem Bityutskiy
parent 3d4ae3b2ea
commit 70f438c616
1 changed files with 1 additions and 3 deletions

View File

@ -67,8 +67,6 @@ struct omap2_onenand {
struct regulator *regulator;
};
static const char *part_probes[] = { "cmdlinepart", NULL, };
static void omap2_onenand_dma_cb(int lch, u16 ch_status, void *data)
{
struct omap2_onenand *c = data;
@ -754,7 +752,7 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev)
if ((r = onenand_scan(&c->mtd, 1)) < 0)
goto err_release_regulator;
r = parse_mtd_partitions(&c->mtd, part_probes, &c->parts, 0);
r = parse_mtd_partitions(&c->mtd, NULL, &c->parts, 0);
if (r > 0)
r = mtd_device_register(&c->mtd, c->parts, r);
else if (pdata->parts != NULL)