summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/pxa2xx-flash.c
diff options
context:
space:
mode:
authorJonathan Cameron2011-11-11 18:06:20 +0100
committerDavid Woodhouse2011-12-07 11:05:15 +0100
commit7148b7999277e2794cec90d8cb47d2a238e0bd0d (patch)
treea68e95f102ca1d643f1f3b64328b9bc5f7515e14 /drivers/mtd/maps/pxa2xx-flash.c
parentmtd: gpmi: add missing include 'module.h' (diff)
downloadkernel-qcow2-linux-7148b7999277e2794cec90d8cb47d2a238e0bd0d.tar.gz
kernel-qcow2-linux-7148b7999277e2794cec90d8cb47d2a238e0bd0d.tar.xz
kernel-qcow2-linux-7148b7999277e2794cec90d8cb47d2a238e0bd0d.zip
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> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/pxa2xx-flash.c')
-rw-r--r--drivers/mtd/maps/pxa2xx-flash.c2
1 files changed, 1 insertions, 1 deletions
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;