Patchwork [01/32] mtd: mtd_dataflash 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-1-git-send-email-dbaryshkov@gmail.com>
Download mbox | patch
Permalink /patch/98825/
State New
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/mtd_dataflash.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
Artem Bityutskiy - June 6, 2011, 11:04 a.m.
On Mon, 2011-06-06 at 13:15 +0400, Dmitry Eremin-Solenikov wrote:
> 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>

Do you have a git URL with these patches?

Patch

diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index 13749d4..4d4a9cd 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -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;