diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-05-29 12:16:43 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:01:59 -0400 |
commit | adaf2a5d0887f9a317eca8550e59b0c92876c64f (patch) | |
tree | f8ef5ef692dc57923af91b990351daf533f25823 /drivers/mtd/devices | |
parent | 1fc468d5d55a0d9101e482ccb96b1b2879a73882 (diff) |
mtd: sst25l 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/devices')
-rw-r--r-- | drivers/mtd/devices/sst25l.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 83e80c65d6e7..52eb92edde93 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c | |||
@@ -423,13 +423,7 @@ static int __devinit sst25l_probe(struct spi_device *spi) | |||
423 | flash->mtd.numeraseregions); | 423 | flash->mtd.numeraseregions); |
424 | 424 | ||
425 | 425 | ||
426 | if (mtd_has_cmdlinepart()) { | 426 | nr_parts = parse_mtd_partitions(&flash->mtd, NULL, &parts, 0); |
427 | static const char *part_probes[] = {"cmdlinepart", NULL}; | ||
428 | |||
429 | nr_parts = parse_mtd_partitions(&flash->mtd, | ||
430 | part_probes, | ||
431 | &parts, 0); | ||
432 | } | ||
433 | 427 | ||
434 | if (nr_parts <= 0 && data && data->parts) { | 428 | if (nr_parts <= 0 && data && data->parts) { |
435 | parts = data->parts; | 429 | parts = data->parts; |