mtd: pxa2xx-flash.c: It used to fall back to provided table.
authorJonathan Cameron <[email protected]>
Fri, 11 Nov 2011 17:06:20 +0000 (17:06 +0000)
committerDavid Woodhouse <[email protected]>
Wed, 7 Dec 2011 10:05:15 +0000 (10:05 +0000)
Make this work again.

Signed-off-by: Jonathan Cameron <[email protected]>
Acked-by: Dmitry Eremin-Solenikov <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
drivers/mtd/maps/pxa2xx-flash.c

index 411a17df9fc13ee2fd78d8e54456e18095bdd91f..2a25b6789af4d5633ee7fcadf104fc08e9183928 100644 (file)
@@ -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;