Patchwork [02/32] mtd: sst25l don't specify default parsing options

login
register
mail settings
Submitter Dmitry Eremin-Solenikov
Date June 6, 2011, 9:15 a.m.
Message ID <1307351782-7456-2-git-send-email-dbaryshkov@gmail.com>
Download mbox | patch
Permalink /patch/98824/
State Accepted
Commit adaf2a5d0887f9a317eca8550e59b0c92876c64f
Headers show

Comments

Dmitry Eremin-Solenikov - June 6, 2011, 9:15 a.m.
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>
---
 drivers/mtd/devices/sst25l.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

Patch

diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c
index 1e2c430..cd095af 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;