Skip to contentSkip to conversation

pxa2xx-flash.c: Not falling back to partition table as it previously did.

PATCH New Jonathan Cameron 3 participants 5 messages Nov 11, 2011 – Dec 6, 2011 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pxa2xx-flash.c: Not falling back to partition table as it previously did.

mtd: pxa2xx-flash.c: use mtd_device_parse_register

changed the behaviour, at least for stargate2.

Previously it used the contents of flash->partitions to init the partitions. Now those are ignored. The following is a trivial fix. I have no idea if this is the right fix though.

If I've missed a patch fixing this, sorry for the noise.

Jonathan

Jonathan Cameron (1):
mtd: pxa2xx-flash.c: It used to fall back to provided table.

 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.7.2
#1 lore raw

PATCH 1/1 mtd: pxa2xx-flash.c: It used to fall back to provided table.

From: Jonathan Cameron <[email protected]>

Make this work again.

---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/maps/pxa2xx-flash.c +1 -1
index 411a17d..2a25b67 100644
@@ -98,7 +98,7 @@ static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
 	}
 	info->mtd->owner = THIS_MODULE;
 
-	mtd_device_parse_register(info->mtd, probes, 0, NULL, 0);
+	mtd_device_parse_register(info->mtd, probes, 0, flash->parts, flash->nr_parts);
 
 	platform_set_drvdata(pdev, info);
 	return 0;
Signature · 1 line
1.7.7.2
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] mtd: pxa2xx-flash.c: It used to fall back to provided table.

Quoted 3 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

Make this work again.

My fault.

Quoted 23 lines

---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/maps/pxa2xx-flash.c +1 -2
index 411a17d..2a25b67 100644
@@ -98,7 +98,7 @@ static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
        }
        info->mtd->owner = THIS_MODULE;
 
-       mtd_device_parse_register(info->mtd, probes, 0, NULL, 0);
+       mtd_device_parse_register(info->mtd, probes, 0, flash->parts, flash->nr_parts);
 
        platform_set_drvdata(pdev, info);
        return 0;
--

1.7.7.2

Signature · 2 lines
With best wishes
Dmitry