summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-11-11 21:06:20 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-12-07 14:05:15 +0400
commit7148b7999277e2794cec90d8cb47d2a238e0bd0d (patch)
treea68e95f102ca1d643f1f3b64328b9bc5f7515e14 /drivers/mtd
parentdf16c86a56595d1c28e58532ec25dd612c39c6c7 (diff)
downloadlinux-7148b7999277e2794cec90d8cb47d2a238e0bd0d.tar.xz
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')
-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;