]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: lantiq-flash don't specify default parsing options
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sun, 29 May 2011 16:25:00 +0000 (20:25 +0400)
committerArtem Bityutskiy <dedekind1@gmail.com>
Thu, 23 Jun 2011 08:43:38 +0000 (11:43 +0300)
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.

Artem: tewaked the patch

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/maps/lantiq-flash.c

index a90cabd7b84d92eb75c061d02805c0db5d15f614..57ea3fe2296f406adaa3ca7debca30e1690b9614 100644 (file)
@@ -107,8 +107,6 @@ ltq_copy_to(struct map_info *map, unsigned long to,
        spin_unlock_irqrestore(&ebu_lock, flags);
 }
 
-static const char const *part_probe_types[] = { "cmdlinepart", NULL };
-
 static int __init
 ltq_mtd_probe(struct platform_device *pdev)
 {
@@ -172,8 +170,7 @@ ltq_mtd_probe(struct platform_device *pdev)
        cfi->addr_unlock1 ^= 1;
        cfi->addr_unlock2 ^= 1;
 
-       nr_parts = parse_mtd_partitions(ltq_mtd->mtd,
-                               part_probe_types, &parts, 0);
+       nr_parts = parse_mtd_partitions(ltq_mtd->mtd, NULL, &parts, 0);
        if (nr_parts > 0) {
                dev_info(&pdev->dev,
                        "using %d partitions from cmdline", nr_parts);