Message ID 1323173231.2163.6.camel@koala
State New, archived
Headers show

Commit Message

Artem Bityutskiy Dec. 6, 2011, 12:07 p.m.
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
> <dbaryshkov@gmail.com>

Hi, I've just noticed that I already have this patch in my tree
which fixes your problem:

commit 84c692b1f408be52eb0f8ad2ce130b7800130a0c
Author: Jonathan Cameron <jic23@cam.ac.uk>
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 <jic23@cam.ac.uk>
    Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>



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;