* [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options
@ 2011-06-06 9:15 Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 02/32] mtd: sst25l " Dmitry Eremin-Solenikov
` (31 more replies)
0 siblings, 32 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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(-)
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;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 02/32] mtd: sst25l don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 03/32] mtd: h720x-flash " Dmitry Eremin-Solenikov
` (30 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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(-)
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;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 03/32] mtd: h720x-flash don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 02/32] mtd: sst25l " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 04/32] mtd: impa7 " Dmitry Eremin-Solenikov
` (29 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/maps/h720x-flash.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/maps/h720x-flash.c b/drivers/mtd/maps/h720x-flash.c
index 7f03586..f331a2c 100644
--- a/drivers/mtd/maps/h720x-flash.c
+++ b/drivers/mtd/maps/h720x-flash.c
@@ -60,8 +60,6 @@ static struct mtd_partition h720x_partitions[] = {
static int nr_mtd_parts;
static struct mtd_partition *mtd_parts;
-static const char *probes[] = { "cmdlinepart", NULL };
-
/*
* Initialize FLASH support
*/
@@ -92,7 +90,7 @@ static int __init h720x_mtd_init(void)
if (mymtd) {
mymtd->owner = THIS_MODULE;
- nr_mtd_parts = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
+ nr_mtd_parts = parse_mtd_partitions(mymtd, NULL, &mtd_parts, 0);
if (nr_mtd_parts > 0)
part_type = "command line";
if (nr_mtd_parts <= 0) {
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 04/32] mtd: impa7 don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 02/32] mtd: sst25l " Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 03/32] mtd: h720x-flash " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 05/32] mtd: intel_vr_nor " Dmitry Eremin-Solenikov
` (28 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/maps/impa7.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/impa7.c b/drivers/mtd/maps/impa7.c
index 404a50c..2d45a48 100644
--- a/drivers/mtd/maps/impa7.c
+++ b/drivers/mtd/maps/impa7.c
@@ -61,7 +61,6 @@ static struct mtd_partition static_partitions[] =
static int mtd_parts_nb[NUM_FLASHBANKS];
static struct mtd_partition *mtd_parts[NUM_FLASHBANKS];
-static const char *probes[] = { "cmdlinepart", NULL };
static int __init init_impa7(void)
{
@@ -98,7 +97,7 @@ static int __init init_impa7(void)
impa7_mtd[i]->owner = THIS_MODULE;
devicesfound++;
mtd_parts_nb[i] = parse_mtd_partitions(impa7_mtd[i],
- probes,
+ NULL,
&mtd_parts[i],
0);
if (mtd_parts_nb[i] > 0) {
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 05/32] mtd: intel_vr_nor don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (2 preceding siblings ...)
2011-06-06 9:15 ` [PATCH 04/32] mtd: impa7 " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 06/32] mtd: rbtx4939-flash " Dmitry Eremin-Solenikov
` (27 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/maps/intel_vr_nor.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/intel_vr_nor.c b/drivers/mtd/maps/intel_vr_nor.c
index d2f47be..fd612c7 100644
--- a/drivers/mtd/maps/intel_vr_nor.c
+++ b/drivers/mtd/maps/intel_vr_nor.c
@@ -72,11 +72,10 @@ static void __devexit vr_nor_destroy_partitions(struct vr_nor_mtd *p)
static int __devinit vr_nor_init_partitions(struct vr_nor_mtd *p)
{
struct mtd_partition *parts;
- static const char *part_probes[] = { "cmdlinepart", NULL };
/* register the flash bank */
/* partition the flash bank */
- p->nr_parts = parse_mtd_partitions(p->info, part_probes, &parts, 0);
+ p->nr_parts = parse_mtd_partitions(p->info, NULL, &parts, 0);
return mtd_device_register(p->info, parts, p->nr_parts);
}
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 06/32] mtd: rbtx4939-flash don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (3 preceding siblings ...)
2011-06-06 9:15 ` [PATCH 05/32] mtd: intel_vr_nor " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 11:42 ` Artem Bityutskiy
2011-06-06 9:15 ` [PATCH 07/32] mtd: atmel_nand " Dmitry Eremin-Solenikov
` (26 subsequent siblings)
31 siblings, 1 reply; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/maps/rbtx4939-flash.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c
index 761fb45..a272678 100644
--- a/drivers/mtd/maps/rbtx4939-flash.c
+++ b/drivers/mtd/maps/rbtx4939-flash.c
@@ -50,7 +50,6 @@ static int rbtx4939_flash_remove(struct platform_device *dev)
}
static const char *rom_probe_types[] = { "cfi_probe", "jedec_probe", NULL };
-static const char *part_probe_types[] = { "cmdlinepart", NULL };
static int rbtx4939_flash_probe(struct platform_device *dev)
{
@@ -107,8 +106,7 @@ static int rbtx4939_flash_probe(struct platform_device *dev)
info->mtd->owner = THIS_MODULE;
if (err)
goto err_out;
-
- err = parse_mtd_partitions(info->mtd, part_probe_types,
+ err = parse_mtd_partitions(info->mtd, NULL,
&info->parts, 0);
if (err > 0) {
mtd_device_register(info->mtd, info->parts, err);
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 07/32] mtd: atmel_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (4 preceding siblings ...)
2011-06-06 9:15 ` [PATCH 06/32] mtd: rbtx4939-flash " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 11:47 ` Artem Bityutskiy
2011-06-06 9:15 ` [PATCH 08/32] mtd: bcm_umi_nand " Dmitry Eremin-Solenikov
` (25 subsequent siblings)
31 siblings, 1 reply; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/atmel_nand.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 7c35739..2e6c5b9 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -480,10 +480,6 @@ static void atmel_nand_hwctl(struct mtd_info *mtd, int mode)
}
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-static const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
-
/*
* Probe for the NAND device.
*/
@@ -654,11 +650,9 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
goto err_scan_tail;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
mtd->name = "atmel_nand";
- num_partitions = parse_mtd_partitions(mtd, part_probes,
+ num_partitions = parse_mtd_partitions(mtd, NULL,
&partitions, 0);
-#endif
if (num_partitions <= 0 && host->board->parts) {
partitions = host->board->parts;
num_partitions = host->board->num_parts;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 08/32] mtd: bcm_umi_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (5 preceding siblings ...)
2011-06-06 9:15 ` [PATCH 07/32] mtd: atmel_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 09/32] mtd: cmx270_nand " Dmitry Eremin-Solenikov
` (24 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/bcm_umi_nand.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/bcm_umi_nand.c b/drivers/mtd/nand/bcm_umi_nand.c
index 7ac8607..7752d59 100644
--- a/drivers/mtd/nand/bcm_umi_nand.c
+++ b/drivers/mtd/nand/bcm_umi_nand.c
@@ -52,8 +52,6 @@
static const __devinitconst char gBanner[] = KERN_INFO \
"BCM UMI MTD NAND Driver: 1.00\n";
-const char *part_probes[] = { "cmdlinepart", NULL };
-
#if NAND_ECC_BCH
static uint8_t scan_ff_pattern[] = { 0xff };
@@ -497,7 +495,7 @@ static int __devinit bcm_umi_nand_probe(struct platform_device *pdev)
board_mtd->name = "bcm_umi-nand";
nr_partitions =
- parse_mtd_partitions(board_mtd, part_probes,
+ parse_mtd_partitions(board_mtd, NULL,
&partition_info, 0);
if (nr_partitions <= 0) {
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 09/32] mtd: cmx270_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (6 preceding siblings ...)
2011-06-06 9:15 ` [PATCH 08/32] mtd: bcm_umi_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:15 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 10/32] mtd: cs553x_nand " Dmitry Eremin-Solenikov
` (23 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:15 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/cmx270_nand.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c
index 6fc043a..f8f5b7c 100644
--- a/drivers/mtd/nand/cmx270_nand.c
+++ b/drivers/mtd/nand/cmx270_nand.c
@@ -50,8 +50,6 @@ static struct mtd_partition partition_info[] = {
};
#define NUM_PARTITIONS (ARRAY_SIZE(partition_info))
-const char *part_probes[] = { "cmdlinepart", NULL };
-
static u_char cmx270_read_byte(struct mtd_info *mtd)
{
struct nand_chip *this = mtd->priv;
@@ -222,14 +220,13 @@ static int __init cmx270_init(void)
goto err_scan;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- mtd_parts_nb = parse_mtd_partitions(cmx270_nand_mtd, part_probes,
+ mtd_parts_nb = parse_mtd_partitions(cmx270_nand_mtd, NULL,
&mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
else
mtd_parts_nb = 0;
-#endif
+
if (!mtd_parts_nb) {
mtd_parts = partition_info;
mtd_parts_nb = NUM_PARTITIONS;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 10/32] mtd: cs553x_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (7 preceding siblings ...)
2011-06-06 9:15 ` [PATCH 09/32] mtd: cmx270_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 11/32] mtd: davinci_nand " Dmitry Eremin-Solenikov
` (22 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/cs553x_nand.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mtd/nand/cs553x_nand.c
index b354961..b2bdf72 100644
--- a/drivers/mtd/nand/cs553x_nand.c
+++ b/drivers/mtd/nand/cs553x_nand.c
@@ -278,8 +278,6 @@ static int is_geode(void)
return 0;
}
-static const char *part_probes[] = { "cmdlinepart", NULL };
-
static int __init cs553x_init(void)
{
int err = -ENXIO;
@@ -318,9 +316,7 @@ static int __init cs553x_init(void)
if (cs553x_mtd[i]) {
/* If any devices registered, return success. Else the last error. */
- mtd_parts_nb = parse_mtd_partitions(cs553x_mtd[i], part_probes, &mtd_parts, 0);
- if (mtd_parts_nb > 0)
- printk(KERN_NOTICE "Using command line partition definition\n");
+ mtd_parts_nb = parse_mtd_partitions(cs553x_mtd[i], NULL, &mtd_parts, 0);
mtd_device_register(cs553x_mtd[i], mtd_parts,
mtd_parts_nb);
err = 0;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 11/32] mtd: davinci_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (8 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 10/32] mtd: cs553x_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 12/32] mtd: edb7312 " Dmitry Eremin-Solenikov
` (21 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/davinci_nand.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index a4c82b4..0c582ed 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -753,14 +753,7 @@ syndrome_done:
if (ret < 0)
goto err_scan;
- if (mtd_has_cmdlinepart()) {
- static const char *probes[] __initconst = {
- "cmdlinepart", NULL
- };
-
- mtd_parts_nb = parse_mtd_partitions(&info->mtd, probes,
- &mtd_parts, 0);
- }
+ mtd_parts_nb = parse_mtd_partitions(&info->mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb <= 0) {
mtd_parts = pdata->parts;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 12/32] mtd: edb7312 don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (9 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 11/32] mtd: davinci_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 13/32] mtd: fsl_upm " Dmitry Eremin-Solenikov
` (20 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/edb7312.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/edb7312.c b/drivers/mtd/nand/edb7312.c
index 8400d0f..2f9374b 100644
--- a/drivers/mtd/nand/edb7312.c
+++ b/drivers/mtd/nand/edb7312.c
@@ -98,8 +98,6 @@ static int ep7312_device_ready(struct mtd_info *mtd)
return 1;
}
-const char *part_probes[] = { "cmdlinepart", NULL };
-
/*
* Main initialization routine
*/
@@ -158,7 +156,7 @@ static int __init ep7312_init(void)
return -ENXIO;
}
ep7312_mtd->name = "edb7312-nand";
- mtd_parts_nb = parse_mtd_partitions(ep7312_mtd, part_probes, &mtd_parts, 0);
+ mtd_parts_nb = parse_mtd_partitions(ep7312_mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
else
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 13/32] mtd: fsl_upm don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (10 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 12/32] mtd: edb7312 " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 14/32] mtd: fsmc_nand " Dmitry Eremin-Solenikov
` (19 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/fsl_upm.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c
index 23752fd..7c782eb 100644
--- a/drivers/mtd/nand/fsl_upm.c
+++ b/drivers/mtd/nand/fsl_upm.c
@@ -158,7 +158,6 @@ static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
{
int ret;
struct device_node *flash_np;
- static const char *part_types[] = { "cmdlinepart", NULL, };
fun->chip.IO_ADDR_R = fun->io_base;
fun->chip.IO_ADDR_W = fun->io_base;
@@ -192,7 +191,7 @@ static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
if (ret)
goto err;
- ret = parse_mtd_partitions(&fun->mtd, part_types, &fun->parts, 0);
+ ret = parse_mtd_partitions(&fun->mtd, NULL, &fun->parts, 0);
#ifdef CONFIG_MTD_OF_PARTS
if (ret == 0) {
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 14/32] mtd: fsmc_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (11 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 13/32] mtd: fsl_upm " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 15/32] mtd: h1910 " Dmitry Eremin-Solenikov
` (18 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/fsmc_nand.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index e9b275a..80abbb2 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -177,9 +177,6 @@ static struct mtd_partition partition_info_128KB_blk[] = {
},
};
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
/**
* struct fsmc_nand_data - structure for FSMC NAND device state
@@ -716,15 +713,13 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
* platform data,
* default partition information present in driver.
*/
-#ifdef CONFIG_MTD_CMDLINE_PARTS
/*
- * Check if partition info passed via command line
+ * Check for partition info passed
*/
host->mtd.name = "nand";
- host->nr_partitions = parse_mtd_partitions(&host->mtd, part_probes,
+ host->nr_partitions = parse_mtd_partitions(&host->mtd, NULL,
&host->partitions, 0);
if (host->nr_partitions <= 0) {
-#endif
/*
* Check if partition info passed via command line
*/
@@ -769,9 +764,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
}
}
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
}
-#endif
ret = mtd_device_register(&host->mtd, host->partitions,
host->nr_partitions);
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 15/32] mtd: h1910 don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (12 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 14/32] mtd: fsmc_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 16/32] mtd: jz4740_nand " Dmitry Eremin-Solenikov
` (17 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/h1910.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/nand/h1910.c b/drivers/mtd/nand/h1910.c
index 02a03e6..42f9177 100644
--- a/drivers/mtd/nand/h1910.c
+++ b/drivers/mtd/nand/h1910.c
@@ -136,14 +136,10 @@ static int __init h1910_init(void)
iounmap((void *)nandaddr);
return -ENXIO;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- mtd_parts_nb = parse_cmdline_partitions(h1910_nand_mtd, &mtd_parts, "h1910-nand");
+ mtd_parts_nb = parse_mtd_partitions(h1910_nand_mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
- else
- mtd_parts_nb = 0;
-#endif
- if (mtd_parts_nb == 0) {
+ else {
mtd_parts = partition_info;
mtd_parts_nb = NUM_PARTITIONS;
part_type = "static";
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 16/32] mtd: jz4740_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (13 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 15/32] mtd: h1910 " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 17/32] mtd: lantiq-flash " Dmitry Eremin-Solenikov
` (16 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/jz4740_nand.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
index 6e813da..920719c 100644
--- a/drivers/mtd/nand/jz4740_nand.c
+++ b/drivers/mtd/nand/jz4740_nand.c
@@ -251,10 +251,6 @@ static int jz_nand_correct_ecc_rs(struct mtd_info *mtd, uint8_t *dat,
return 0;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-static const char *part_probes[] = {"cmdline", NULL};
-#endif
-
static int jz_nand_ioremap_resource(struct platform_device *pdev,
const char *name, struct resource **res, void __iomem **base)
{
@@ -373,10 +369,7 @@ static int __devinit jz_nand_probe(struct platform_device *pdev)
goto err_gpio_free;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- num_partitions = parse_mtd_partitions(mtd, part_probes,
- &partition_info, 0);
-#endif
+ num_partitions = parse_mtd_partitions(mtd, NULL, &partition_info, 0);
if (num_partitions <= 0 && pdata) {
num_partitions = pdata->num_partitions;
partition_info = pdata->partitions;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 17/32] mtd: lantiq-flash don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (14 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 16/32] mtd: jz4740_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 18/32] mtd: latch-addr-flash " Dmitry Eremin-Solenikov
` (15 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/maps/lantiq-flash.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
index a90cabd..6c7a5b9 100644
--- a/drivers/mtd/maps/lantiq-flash.c
+++ b/drivers/mtd/maps/lantiq-flash.c
@@ -107,8 +107,6 @@ ltq_copy_to(struct map_info *map, unsigned long to,
spin_unlock_irqrestore(&ebu_lock, flags);
}
-static const char const *part_probe_types[] = { "cmdlinepart", NULL };
-
static int __init
ltq_mtd_probe(struct platform_device *pdev)
{
@@ -173,7 +171,7 @@ ltq_mtd_probe(struct platform_device *pdev)
cfi->addr_unlock2 ^= 1;
nr_parts = parse_mtd_partitions(ltq_mtd->mtd,
- part_probe_types, &parts, 0);
+ NULL, &parts, 0);
if (nr_parts > 0) {
dev_info(&pdev->dev,
"using %d partitions from cmdline", nr_parts);
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 18/32] mtd: latch-addr-flash don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (15 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 17/32] mtd: lantiq-flash " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 19/32] mtd: mpc5121_nfc " Dmitry Eremin-Solenikov
` (14 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/maps/latch-addr-flash.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/maps/latch-addr-flash.c b/drivers/mtd/maps/latch-addr-flash.c
index 5936c46..7b2199e 100644
--- a/drivers/mtd/maps/latch-addr-flash.c
+++ b/drivers/mtd/maps/latch-addr-flash.c
@@ -97,8 +97,6 @@ static void lf_copy_from(struct map_info *map, void *to,
static char *rom_probe_types[] = { "cfi_probe", NULL };
-static char *part_probe_types[] = { "cmdlinepart", NULL };
-
static int latch_addr_flash_remove(struct platform_device *dev)
{
struct latch_addr_flash_info *info;
@@ -206,7 +204,7 @@ static int __devinit latch_addr_flash_probe(struct platform_device *dev)
}
info->mtd->owner = THIS_MODULE;
- err = parse_mtd_partitions(info->mtd, (const char **)part_probe_types,
+ err = parse_mtd_partitions(info->mtd, NULL,
&info->parts, 0);
if (err > 0) {
mtd_device_register(info->mtd, info->parts, err);
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 19/32] mtd: mpc5121_nfc don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (16 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 18/32] mtd: latch-addr-flash " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 20/32] mtd: ndfc " Dmitry Eremin-Solenikov
` (13 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/mpc5121_nfc.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index e0e0846..0b61367 100644
--- a/drivers/mtd/nand/mpc5121_nfc.c
+++ b/drivers/mtd/nand/mpc5121_nfc.c
@@ -131,8 +131,6 @@ struct mpc5121_nfc_prv {
static void mpc5121_nfc_done(struct mtd_info *mtd);
-static const char *mpc5121_nfc_pprobes[] = { "cmdlinepart", NULL };
-
/* Read NFC register */
static inline u16 nfc_read(struct mtd_info *mtd, uint reg)
{
@@ -838,7 +836,7 @@ static int __devinit mpc5121_nfc_probe(struct platform_device *op)
dev_set_drvdata(dev, mtd);
/* Register device in MTD */
- retval = parse_mtd_partitions(mtd, mpc5121_nfc_pprobes, &parts, 0);
+ retval = parse_mtd_partitions(mtd, NULL, &parts, 0);
#ifdef CONFIG_MTD_OF_PARTS
if (retval == 0)
retval = of_mtd_parse_partitions(dev, dn, &parts);
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 20/32] mtd: ndfc don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (17 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 19/32] mtd: mpc5121_nfc " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 21/32] mtd: omap2 " Dmitry Eremin-Solenikov
` (12 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/ndfc.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index ea2dea8..cb66fd7 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -159,11 +159,6 @@ static int ndfc_verify_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
static int ndfc_chip_init(struct ndfc_controller *ndfc,
struct device_node *node)
{
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- static const char *part_types[] = { "cmdlinepart", NULL };
-#else
- static const char *part_types[] = { NULL };
-#endif
struct device_node *flash_np;
struct nand_chip *chip = &ndfc->chip;
int ret;
@@ -204,7 +199,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
if (ret)
goto err;
- ret = parse_mtd_partitions(&ndfc->mtd, part_types, &ndfc->parts, 0);
+ ret = parse_mtd_partitions(&ndfc->mtd, NULL, &ndfc->parts, 0);
if (ret < 0)
goto err;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 21/32] mtd: omap2 don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (18 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 20/32] mtd: ndfc " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 22/32] mtd: orion_nand " Dmitry Eremin-Solenikov
` (11 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/omap2.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 0db2c0e..8783c08 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -94,8 +94,6 @@
#define P4e_s(a) (TF(a & NAND_Ecc_P4e) << 0)
#define P4o_s(a) (TF(a & NAND_Ecc_P4o) << 1)
-static const char *part_probes[] = { "cmdlinepart", NULL };
-
/* oob info generated runtime depending on ecc algorithm and layout selected */
static struct nand_ecclayout omap_oobinfo;
/* Define some generic bad / good block scan pattern which are used
@@ -1103,7 +1101,7 @@ static int __devinit omap_nand_probe(struct platform_device *pdev)
goto out_release_mem_region;
}
- err = parse_mtd_partitions(&info->mtd, part_probes, &info->parts, 0);
+ err = parse_mtd_partitions(&info->mtd, NULL, &info->parts, 0);
if (err > 0)
mtd_device_register(&info->mtd, info->parts, err);
else if (pdata->parts)
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 22/32] mtd: orion_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (19 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 21/32] mtd: omap2 " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 23/32] mtd: ppchameleonevb " Dmitry Eremin-Solenikov
` (10 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/orion_nand.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c
index 7794d06..5c55981 100644
--- a/drivers/mtd/nand/orion_nand.c
+++ b/drivers/mtd/nand/orion_nand.c
@@ -21,8 +21,6 @@
#include <mach/hardware.h>
#include <plat/orion_nand.h>
-static const char *part_probes[] = { "cmdlinepart", NULL };
-
static void orion_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
{
struct nand_chip *nc = mtd->priv;
@@ -132,10 +130,8 @@ static int __init orion_nand_probe(struct platform_device *pdev)
goto no_dev;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
mtd->name = "orion_nand";
- num_part = parse_mtd_partitions(mtd, part_probes, &partitions, 0);
-#endif
+ num_part = parse_mtd_partitions(mtd, NULL, &partitions, 0);
/* If cmdline partitions have been passed, let them be used */
if (num_part <= 0) {
num_part = board->nr_parts;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 23/32] mtd: ppchameleonevb don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (20 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 22/32] mtd: orion_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 24/32] mtd: pxa3xx_nand " Dmitry Eremin-Solenikov
` (9 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/ppchameleonevb.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/mtd/nand/ppchameleonevb.c b/drivers/mtd/nand/ppchameleonevb.c
index 3bbb796..9376633 100644
--- a/drivers/mtd/nand/ppchameleonevb.c
+++ b/drivers/mtd/nand/ppchameleonevb.c
@@ -99,8 +99,6 @@ static struct mtd_partition partition_info_evb[] = {
#define NUM_PARTITIONS 1
-extern int parse_cmdline_partitions(struct mtd_info *master, struct mtd_partition **pparts, const char *mtd_id);
-
/*
* hardware specific access to control-lines
*/
@@ -187,9 +185,6 @@ static int ppchameleonevb_device_ready(struct mtd_info *minfo)
}
#endif
-const char *part_probes[] = { "cmdlinepart", NULL };
-const char *part_probes_evb[] = { "cmdlinepart", NULL };
-
/*
* Main initialization routine
*/
@@ -281,7 +276,7 @@ static int __init ppchameleonevb_init(void)
#endif
ppchameleon_mtd->name = "ppchameleon-nand";
- mtd_parts_nb = parse_mtd_partitions(ppchameleon_mtd, part_probes, &mtd_parts, 0);
+ mtd_parts_nb = parse_mtd_partitions(ppchameleon_mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
else
@@ -382,7 +377,7 @@ static int __init ppchameleonevb_init(void)
}
ppchameleonevb_mtd->name = NAND_EVB_MTD_NAME;
- mtd_parts_nb = parse_mtd_partitions(ppchameleonevb_mtd, part_probes_evb, &mtd_parts, 0);
+ mtd_parts_nb = parse_mtd_partitions(ppchameleonevb_mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
else
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 24/32] mtd: pxa3xx_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (21 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 23/32] mtd: ppchameleonevb " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 25/32] mtd: s3c2410 " Dmitry Eremin-Solenikov
` (8 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/pxa3xx_nand.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 1fb3b3a..80d65c4 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1129,6 +1129,8 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
{
struct pxa3xx_nand_platform_data *pdata;
struct pxa3xx_nand_info *info;
+ struct mtd_partition *parts;
+ int nr_parts;
pdata = pdev->dev.platform_data;
if (!pdata) {
@@ -1146,16 +1148,11 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
return -ENODEV;
}
- if (mtd_has_cmdlinepart()) {
- const char *probes[] = { "cmdlinepart", NULL };
- struct mtd_partition *parts;
- int nr_parts;
- nr_parts = parse_mtd_partitions(info->mtd, probes, &parts, 0);
+ nr_parts = parse_mtd_partitions(info->mtd, NULL, &parts, 0);
- if (nr_parts)
- return mtd_device_register(info->mtd, parts, nr_parts);
- }
+ if (nr_parts)
+ return mtd_device_register(info->mtd, parts, nr_parts);
return mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts);
}
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 25/32] mtd: s3c2410 don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (22 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 24/32] mtd: pxa3xx_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 26/32] mtd: sharpsl " Dmitry Eremin-Solenikov
` (7 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/s3c2410.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index ec28079..17954ba 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -744,7 +744,6 @@ static int s3c24xx_nand_remove(struct platform_device *pdev)
return 0;
}
-const char *part_probes[] = { "cmdlinepart", NULL };
static int s3c2410_nand_add_partition(struct s3c2410_nand_info *info,
struct s3c2410_nand_mtd *mtd,
struct s3c2410_nand_set *set)
@@ -756,7 +755,7 @@ static int s3c2410_nand_add_partition(struct s3c2410_nand_info *info,
return mtd_device_register(&mtd->mtd, NULL, 0);
mtd->mtd.name = set->name;
- nr_part = parse_mtd_partitions(&mtd->mtd, part_probes, &part_info, 0);
+ nr_part = parse_mtd_partitions(&mtd->mtd, NULL, &part_info, 0);
if (nr_part <= 0 && set->nr_partitions > 0) {
nr_part = set->nr_partitions;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 26/32] mtd: sharpsl don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (23 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 25/32] mtd: s3c2410 " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 27/32] mtd: socrates_nand " Dmitry Eremin-Solenikov
` (6 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/sharpsl.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c
index 19e24ed..b3377f8 100644
--- a/drivers/mtd/nand/sharpsl.c
+++ b/drivers/mtd/nand/sharpsl.c
@@ -103,8 +103,6 @@ static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat,
return readb(sharpsl->io + ECCCNTR) != 0;
}
-static const char *part_probes[] = { "cmdlinepart", NULL };
-
/*
* Main initialization routine
*/
@@ -184,7 +182,7 @@ static int __devinit sharpsl_nand_probe(struct platform_device *pdev)
/* Register the partitions */
sharpsl->mtd.name = "sharpsl-nand";
- nr_partitions = parse_mtd_partitions(&sharpsl->mtd, part_probes, &sharpsl_partition_info, 0);
+ nr_partitions = parse_mtd_partitions(&sharpsl->mtd, NULL, &sharpsl_partition_info, 0);
if (nr_partitions <= 0) {
nr_partitions = data->nr_partitions;
sharpsl_partition_info = data->partitions;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 27/32] mtd: socrates_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (24 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 26/32] mtd: sharpsl " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 28/32] mtd: tmio_nand " Dmitry Eremin-Solenikov
` (5 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/socrates_nand.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c
index ca2d055..6ed53e1 100644
--- a/drivers/mtd/nand/socrates_nand.c
+++ b/drivers/mtd/nand/socrates_nand.c
@@ -155,8 +155,6 @@ static int socrates_nand_device_ready(struct mtd_info *mtd)
return 1;
}
-static const char *part_probes[] = { "cmdlinepart", NULL };
-
/*
* Probe for the NAND device.
*/
@@ -225,14 +223,12 @@ static int __devinit socrates_nand_probe(struct platform_device *ofdev)
goto out;
}
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- num_partitions = parse_mtd_partitions(mtd, part_probes,
+ num_partitions = parse_mtd_partitions(mtd, NULL,
&partitions, 0);
if (num_partitions < 0) {
res = num_partitions;
goto release;
}
-#endif
if (num_partitions == 0) {
num_partitions = of_mtd_parse_partitions(&ofdev->dev,
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 28/32] mtd: tmio_nand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (25 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 27/32] mtd: socrates_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 29/32] mtd: txx9ndfmc " Dmitry Eremin-Solenikov
` (4 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/tmio_nand.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
index 11e8371..b6ffad6 100644
--- a/drivers/mtd/nand/tmio_nand.c
+++ b/drivers/mtd/nand/tmio_nand.c
@@ -121,9 +121,6 @@ struct tmio_nand {
#define mtd_to_tmio(m) container_of(m, struct tmio_nand, mtd)
-#ifdef CONFIG_MTD_CMDLINE_PARTS
-static const char *part_probes[] = { "cmdlinepart", NULL };
-#endif
/*--------------------------------------------------------------------------*/
@@ -461,9 +458,7 @@ static int tmio_probe(struct platform_device *dev)
goto err_scan;
}
/* Register the partitions */
-#ifdef CONFIG_MTD_CMDLINE_PARTS
- nbparts = parse_mtd_partitions(mtd, part_probes, &parts, 0);
-#endif
+ nbparts = parse_mtd_partitions(mtd, NULL, &parts, 0);
if (nbparts <= 0 && data) {
parts = data->partition;
nbparts = data->num_partitions;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 29/32] mtd: txx9ndfmc don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (26 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 28/32] mtd: tmio_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 30/32] mtd: onenand/generic " Dmitry Eremin-Solenikov
` (3 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/nand/txx9ndfmc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/txx9ndfmc.c b/drivers/mtd/nand/txx9ndfmc.c
index bfba4e3..91b05b9 100644
--- a/drivers/mtd/nand/txx9ndfmc.c
+++ b/drivers/mtd/nand/txx9ndfmc.c
@@ -287,7 +287,6 @@ static int txx9ndfmc_nand_scan(struct mtd_info *mtd)
static int __init txx9ndfmc_probe(struct platform_device *dev)
{
struct txx9ndfmc_platform_data *plat = dev->dev.platform_data;
- static const char *probes[] = { "cmdlinepart", NULL };
int hold, spw;
int i;
struct txx9ndfmc_drvdata *drvdata;
@@ -393,7 +392,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev)
}
mtd->name = txx9_priv->mtdname;
- nr_parts = parse_mtd_partitions(mtd, probes,
+ nr_parts = parse_mtd_partitions(mtd, NULL,
&drvdata->parts[i], 0);
mtd_device_register(mtd, drvdata->parts[i], nr_parts);
drvdata->mtds[i] = mtd;
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 30/32] mtd: onenand/generic don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (27 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 29/32] mtd: txx9ndfmc " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 31/32] mtd: onenand/omap2 " Dmitry Eremin-Solenikov
` (2 subsequent siblings)
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/onenand/generic.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
index 2d70d35..bca1c49 100644
--- a/drivers/mtd/onenand/generic.c
+++ b/drivers/mtd/onenand/generic.c
@@ -30,8 +30,6 @@
*/
#define DRIVER_NAME "onenand-flash"
-static const char *part_probes[] = { "cmdlinepart", NULL, };
-
struct onenand_info {
struct mtd_info mtd;
struct mtd_partition *parts;
@@ -73,7 +71,7 @@ static int __devinit generic_onenand_probe(struct platform_device *pdev)
goto out_iounmap;
}
- err = parse_mtd_partitions(&info->mtd, part_probes, &info->parts, 0);
+ err = parse_mtd_partitions(&info->mtd, NULL, &info->parts, 0);
if (err > 0)
mtd_device_register(&info->mtd, info->parts, err);
else if (err <= 0 && pdata && pdata->parts)
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 31/32] mtd: onenand/omap2 don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (28 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 30/32] mtd: onenand/generic " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 32/32] mtd: samsung/onenand " Dmitry Eremin-Solenikov
2011-06-06 11:04 ` [PATCH 01/32] mtd: mtd_dataflash " Artem Bityutskiy
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/onenand/omap2.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c
index 0d9073d..5ca2053 100644
--- a/drivers/mtd/onenand/omap2.c
+++ b/drivers/mtd/onenand/omap2.c
@@ -67,8 +67,6 @@ struct omap2_onenand {
struct regulator *regulator;
};
-static const char *part_probes[] = { "cmdlinepart", NULL, };
-
static void omap2_onenand_dma_cb(int lch, u16 ch_status, void *data)
{
struct omap2_onenand *c = data;
@@ -754,7 +752,7 @@ static int __devinit omap2_onenand_probe(struct platform_device *pdev)
if ((r = onenand_scan(&c->mtd, 1)) < 0)
goto err_release_regulator;
- r = parse_mtd_partitions(&c->mtd, part_probes, &c->parts, 0);
+ r = parse_mtd_partitions(&c->mtd, NULL, &c->parts, 0);
if (r > 0)
r = mtd_device_register(&c->mtd, c->parts, r);
else if (pdata->parts != NULL)
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* [PATCH 32/32] mtd: samsung/onenand don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (29 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 31/32] mtd: onenand/omap2 " Dmitry Eremin-Solenikov
@ 2011-06-06 9:16 ` Dmitry Eremin-Solenikov
2011-06-06 11:04 ` [PATCH 01/32] mtd: mtd_dataflash " Artem Bityutskiy
31 siblings, 0 replies; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 9:16 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, dedekind1
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/onenand/samsung.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index 3306b5b..78a08ea 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -157,8 +157,6 @@ struct s3c_onenand {
static struct s3c_onenand *onenand;
-static const char *part_probes[] = { "cmdlinepart", NULL, };
-
static inline int s3c_read_reg(int offset)
{
return readl(onenand->base + offset);
@@ -1017,7 +1015,7 @@ static int s3c_onenand_probe(struct platform_device *pdev)
if (s3c_read_reg(MEM_CFG_OFFSET) & ONENAND_SYS_CFG1_SYNC_READ)
dev_info(&onenand->pdev->dev, "OneNAND Sync. Burst Read enabled\n");
- err = parse_mtd_partitions(mtd, part_probes, &onenand->parts, 0);
+ err = parse_mtd_partitions(mtd, NULL, &onenand->parts, 0);
if (err > 0)
mtd_device_register(mtd, onenand->parts, err);
else if (err <= 0 && pdata && pdata->parts)
--
1.7.4.4
^ permalink raw reply related [flat|nested] 37+ messages in thread
* Re: [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
` (30 preceding siblings ...)
2011-06-06 9:16 ` [PATCH 32/32] mtd: samsung/onenand " Dmitry Eremin-Solenikov
@ 2011-06-06 11:04 ` Artem Bityutskiy
2011-06-06 11:19 ` Dmitry Eremin-Solenikov
31 siblings, 1 reply; 37+ messages in thread
From: Artem Bityutskiy @ 2011-06-06 11:04 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov; +Cc: David Woodhouse, linux-mtd
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?
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options
2011-06-06 11:04 ` [PATCH 01/32] mtd: mtd_dataflash " Artem Bityutskiy
@ 2011-06-06 11:19 ` Dmitry Eremin-Solenikov
2011-06-06 12:02 ` Artem Bityutskiy
0 siblings, 1 reply; 37+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-06-06 11:19 UTC (permalink / raw)
To: dedekind1; +Cc: David Woodhouse, linux-mtd
Hello,
On Mon, Jun 6, 2011 at 3:04 PM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> 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?
Yes. Unfortunately git.kernel.org syncs too slow now, so the kernel
wasn't available
at the time of sending an e-mail.
Here it goes:
The following changes since commit 099fbd4fd91fde9748d9ad927e59b6c36a2651cf:
mtd: drop mtd_has_cmdlinepart() (2011-06-06 10:31:22 +0300)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/lumag/mtd-cleanup.git
mtd-cleanup-cmdline
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH 06/32] mtd: rbtx4939-flash don't specify default parsing options
2011-06-06 9:15 ` [PATCH 06/32] mtd: rbtx4939-flash " Dmitry Eremin-Solenikov
@ 2011-06-06 11:42 ` Artem Bityutskiy
0 siblings, 0 replies; 37+ messages in thread
From: Artem Bityutskiy @ 2011-06-06 11:42 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov; +Cc: David Woodhouse, linux-mtd
On Mon, 2011-06-06 at 13:15 +0400, Dmitry Eremin-Solenikov wrote:
> static int rbtx4939_flash_probe(struct platform_device *dev)
> {
> @@ -107,8 +106,7 @@ static int rbtx4939_flash_probe(struct platform_device *dev)
> info->mtd->owner = THIS_MODULE;
> if (err)
> goto err_out;
> -
> - err = parse_mtd_partitions(info->mtd, part_probe_types,
> + err = parse_mtd_partitions(info->mtd, NULL,
> &info->parts, 0);
This can become one-line. I can do this.
> if (err > 0) {
> mtd_device_register(info->mtd, info->parts, err);
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH 07/32] mtd: atmel_nand don't specify default parsing options
2011-06-06 9:15 ` [PATCH 07/32] mtd: atmel_nand " Dmitry Eremin-Solenikov
@ 2011-06-06 11:47 ` Artem Bityutskiy
0 siblings, 0 replies; 37+ messages in thread
From: Artem Bityutskiy @ 2011-06-06 11:47 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov; +Cc: David Woodhouse, linux-mtd
On Mon, 2011-06-06 at 13:15 +0400, Dmitry Eremin-Solenikov wrote:
> - num_partitions = parse_mtd_partitions(mtd, part_probes,
> + num_partitions = parse_mtd_partitions(mtd, NULL,
> &partitions, 0);
Ditto, this should have become one-liner, I'll do this.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 37+ messages in thread
* Re: [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options
2011-06-06 11:19 ` Dmitry Eremin-Solenikov
@ 2011-06-06 12:02 ` Artem Bityutskiy
0 siblings, 0 replies; 37+ messages in thread
From: Artem Bityutskiy @ 2011-06-06 12:02 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov; +Cc: David Woodhouse, linux-mtd
On Mon, 2011-06-06 at 15:19 +0400, Dmitry Eremin-Solenikov wrote:
> Hello,
>
> On Mon, Jun 6, 2011 at 3:04 PM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> > 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?
>
> Yes. Unfortunately git.kernel.org syncs too slow now, so the kernel
> wasn't available
> at the time of sending an e-mail.
>
> Here it goes:
>
> The following changes since commit 099fbd4fd91fde9748d9ad927e59b6c36a2651cf:
>
> mtd: drop mtd_has_cmdlinepart() (2011-06-06 10:31:22 +0300)
>
> are available in the git repository at:
> git://git.kernel.org/pub/scm/linux/kernel/git/lumag/mtd-cleanup.git
> mtd-cleanup-cmdline
OK, thanks, all the patches are in the l2 tree now. But one note:
please, after a mechanical change go through the patches and check that
them. E.g., in this case many patches could also merge the list of
parameters. I mean, if you are substituting something long by something
short, you check if you can merge lines. Otherwise, you check if some
lines became too long...
Thanks!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 37+ messages in thread
end of thread, other threads:[~2011-06-06 12:07 UTC | newest]
Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 9:15 [PATCH 01/32] mtd: mtd_dataflash don't specify default parsing options Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 02/32] mtd: sst25l " Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 03/32] mtd: h720x-flash " Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 04/32] mtd: impa7 " Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 05/32] mtd: intel_vr_nor " Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 06/32] mtd: rbtx4939-flash " Dmitry Eremin-Solenikov
2011-06-06 11:42 ` Artem Bityutskiy
2011-06-06 9:15 ` [PATCH 07/32] mtd: atmel_nand " Dmitry Eremin-Solenikov
2011-06-06 11:47 ` Artem Bityutskiy
2011-06-06 9:15 ` [PATCH 08/32] mtd: bcm_umi_nand " Dmitry Eremin-Solenikov
2011-06-06 9:15 ` [PATCH 09/32] mtd: cmx270_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 10/32] mtd: cs553x_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 11/32] mtd: davinci_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 12/32] mtd: edb7312 " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 13/32] mtd: fsl_upm " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 14/32] mtd: fsmc_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 15/32] mtd: h1910 " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 16/32] mtd: jz4740_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 17/32] mtd: lantiq-flash " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 18/32] mtd: latch-addr-flash " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 19/32] mtd: mpc5121_nfc " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 20/32] mtd: ndfc " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 21/32] mtd: omap2 " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 22/32] mtd: orion_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 23/32] mtd: ppchameleonevb " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 24/32] mtd: pxa3xx_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 25/32] mtd: s3c2410 " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 26/32] mtd: sharpsl " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 27/32] mtd: socrates_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 28/32] mtd: tmio_nand " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 29/32] mtd: txx9ndfmc " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 30/32] mtd: onenand/generic " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 31/32] mtd: onenand/omap2 " Dmitry Eremin-Solenikov
2011-06-06 9:16 ` [PATCH 32/32] mtd: samsung/onenand " Dmitry Eremin-Solenikov
2011-06-06 11:04 ` [PATCH 01/32] mtd: mtd_dataflash " Artem Bityutskiy
2011-06-06 11:19 ` Dmitry Eremin-Solenikov
2011-06-06 12:02 ` Artem Bityutskiy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.