mtd: sst25l don't specify default parsing options
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sun, 29 May 2011 16:16:43 +0000 (20:16 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:01:59 +0000 (15:01 +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/sst25l.c

index 83e80c65d6e70ce9b508591ff814eab6150c9d08..52eb92edde939b4d3073d5f36cb6c9b3c9ec68f8 100644 (file)
@@ -423,13 +423,7 @@ static int __devinit sst25l_probe(struct spi_device *spi)
              flash->mtd.numeraseregions);
 
 
-       if (mtd_has_cmdlinepart()) {
-               static const char *part_probes[] = {"cmdlinepart", NULL};
-
-               nr_parts = parse_mtd_partitions(&flash->mtd,
-                                               part_probes,
-                                               &parts, 0);
-       }
+       nr_parts = parse_mtd_partitions(&flash->mtd, NULL, &parts, 0);
 
        if (nr_parts <= 0 && data && data->parts) {
                parts = data->parts;