From: Jonathan Cameron Date: Fri, 11 Nov 2011 17:06:20 +0000 (+0000) Subject: mtd: pxa2xx-flash.c: It used to fall back to provided table. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7148b7999277e2794cec90d8cb47d2a238e0bd0d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c index 411a17df9fc1..2a25b6789af4 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;