mtd: sst25l don't specify default parsing options
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 7 11:59:06 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=adaf2a5d0887f9a317eca8550e59b0c92876c64f
Commit: adaf2a5d0887f9a317eca8550e59b0c92876c64f
Parent: 1fc468d5d55a0d9101e482ccb96b1b2879a73882
Author: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
AuthorDate: Sun May 29 20:16:43 2011 +0400
Committer: Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:01:59 2011 +0300
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 at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
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 83e80c6..52eb92e 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)
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;
More information about the linux-mtd-cvs
mailing list