diff options
| author | Olof Johansson <olof@lixom.net> | 2013-02-05 17:03:31 -0500 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-02-05 17:03:45 -0500 |
| commit | b6a03d0492dedb5c10b8a5708ee92e04b0590c07 (patch) | |
| tree | 21774ee93c50847fe1ea044f2cabae0746ac39d3 /drivers/mtd/onenand/omap2.c | |
| parent | 3e93093ecd0c144e86a86cc1f165221b6cd3e7fb (diff) | |
| parent | 97c794a1e37b1ca128ef38f17c069186bfa5fb1b (diff) | |
Merge tag 'omap-for-v3.9/gpmc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/drivers
From Tony Lindgren:
OMAP GPMC (General Purpose Memory Controller) changes to add
device tree bindings.
* tag 'omap-for-v3.9/gpmc-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: OMAP2+: gpmc: Add device tree documentation for elm handle
ARM: OMAP2+: gpmc: add DT bindings for OneNAND
ARM: OMAP2+: gpmc-onenand: drop __init annotation
mtd: omap-onenand: pass device_node in platform data
ARM: OMAP2+: Prevent potential crash if GPMC probe fails
ARM: OMAP2+: gpmc: Remove unneeded of_node_put()
ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND
ARM: OMAP: gpmc: enable hwecc for AM33xx SoCs
ARM: OMAP: gpmc-nand: drop __init annotation
mtd: omap-nand: pass device_node in platform data
ARM: OMAP: gpmc: don't create devices from initcall on DT
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/mtd/onenand/omap2.c')
| -rw-r--r-- | drivers/mtd/onenand/omap2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 065f3fe02a2f..eec2aedb4ab8 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c | |||
| @@ -637,6 +637,7 @@ static int omap2_onenand_probe(struct platform_device *pdev) | |||
| 637 | struct onenand_chip *this; | 637 | struct onenand_chip *this; |
| 638 | int r; | 638 | int r; |
| 639 | struct resource *res; | 639 | struct resource *res; |
| 640 | struct mtd_part_parser_data ppdata = {}; | ||
| 640 | 641 | ||
| 641 | pdata = pdev->dev.platform_data; | 642 | pdata = pdev->dev.platform_data; |
| 642 | if (pdata == NULL) { | 643 | if (pdata == NULL) { |
| @@ -767,7 +768,8 @@ static int omap2_onenand_probe(struct platform_device *pdev) | |||
| 767 | if ((r = onenand_scan(&c->mtd, 1)) < 0) | 768 | if ((r = onenand_scan(&c->mtd, 1)) < 0) |
| 768 | goto err_release_regulator; | 769 | goto err_release_regulator; |
| 769 | 770 | ||
| 770 | r = mtd_device_parse_register(&c->mtd, NULL, NULL, | 771 | ppdata.of_node = pdata->of_node; |
| 772 | r = mtd_device_parse_register(&c->mtd, NULL, &ppdata, | ||
| 771 | pdata ? pdata->parts : NULL, | 773 | pdata ? pdata->parts : NULL, |
| 772 | pdata ? pdata->nr_parts : 0); | 774 | pdata ? pdata->nr_parts : 0); |
| 773 | if (r) | 775 | if (r) |
