From patchwork Tue Dec 6 12:07:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: pxa2xx-flash.c Date: Tue, 06 Dec 2011 02:07:10 -0000 From: Artem Bityutskiy X-Patchwork-Id: 129642 Message-Id: <1323173231.2163.6.camel@koala> To: Anders =?ISO-8859-1?Q?M=F8rk-Pedersen?= Cc: linux-mtd@lists.infradead.org On Mon, 2011-12-05 at 08:05 +0100, Anders Mørk-Pedersen wrote: > I have done as you instructed and created a patch for "git am" and > attached it to this mail. > > I've also sent a copy to: Dmitry Eremin-Solenikov > Hi, I've just noticed that I already have this patch in my tree which fixes your problem: commit 84c692b1f408be52eb0f8ad2ce130b7800130a0c Author: Jonathan Cameron Date: Fri Nov 11 17:06:20 2011 +0000 mtd: pxa2xx-flash.c: It used to fall back to provided table. Make this work again. Signed-off-by: Jonathan Cameron Acked-by: Dmitry Eremin-Solenikov Signed-off-by: Artem Bityutskiy Artem. diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c index 411a17d..2a25b67 100644 --- a/drivers/mtd/maps/pxa2xx-flash.c +++ b/drivers/mtd/maps/pxa2xx-flash.c @@ -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;