pxa2xx-flash.c: Not falling back to partition table as it previously did.
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
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
@@ -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
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
Signed-off-by Jonathan Cameron <[email protected]>---
drivers/mtd/maps/pxa2xx-flash.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/mtd/maps/pxa2xx-flash.c +1
-2@@ -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
Artem Bityutskiy
AppliedRe: [PATCH] mtd: pxa2xx-flash.c: It used to fall back to provided table.
In reply to Jonathan CameronQuoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Make this work again.
Signed-off-by Jonathan Cameron <[email protected]>
Pushed to l2-mtd-2.6.git, thanks!
Artem.
Re: [PATCH] mtd: pxa2xx-flash.c: It used to fall back to provided table.
In reply to Jonathan CameronQuoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
Make this work again.
Signed-off-by Jonathan Cameron <[email protected]>
I guess this should be sent to Linus this merge window. David?