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

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

index 13749d458a313297fed127f39399b3432e3be1ff..4d4a9cd10c337d355ced98c0552243b35812ba21 100644 (file)
@@ -677,12 +677,7 @@ add_dataflash_otp(struct spi_device *spi, char *name,
                        pagesize, otp_tag);
        dev_set_drvdata(&spi->dev, priv);
 
-       if (mtd_has_cmdlinepart()) {
-               static const char *part_probes[] = { "cmdlinepart", NULL, };
-
-               nr_parts = parse_mtd_partitions(device, part_probes, &parts,
-                                               0);
-       }
+       nr_parts = parse_mtd_partitions(device, NULL, &parts, 0);
 
        if (nr_parts <= 0 && pdata && pdata->parts) {
                parts = pdata->parts;