diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:12:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:12:18 -0500 |
commit | 5ce7aba976ebdfbf467e3cbcd3a7536ebdec4b11 (patch) | |
tree | a31ceb4a167035aad73fd116ee8512fca905fd7b /drivers/mtd/nand | |
parent | 7ae1c76ee5b58fe5bd55a07f99a3359333270b86 (diff) | |
parent | b6a03d0492dedb5c10b8a5708ee92e04b0590c07 (diff) |
Merge tag 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC driver specific changes from Arnd Bergmann:
- Updates to the ux500 cpufreq code
- Moving the u300 DMA controller driver to drivers/dma
- Moving versatile express drivers out of arch/arm for sharing with arch/arm64
- Device tree bindings for the OMAP General Purpose Memory Controller
* tag 'drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (27 commits)
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: Move sp810.h to include/linux/amba/
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
dma: coh901318: cut down on platform data abstraction
dma: coh901318: merge header files
dma: coh901318: push definitions into driver
dma: coh901318: push header down into the DMA subsystem
dma: coh901318: skip hard-coded addresses
dma: coh901318: remove hardcoded target addresses
dma: coh901318: push platform data into driver
dma: coh901318: create a proper platform data file
...
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/omap2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 0002d5e94f0d..1d333497cfcb 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -1332,6 +1332,7 @@ static int omap_nand_probe(struct platform_device *pdev) | |||
1332 | dma_cap_mask_t mask; | 1332 | dma_cap_mask_t mask; |
1333 | unsigned sig; | 1333 | unsigned sig; |
1334 | struct resource *res; | 1334 | struct resource *res; |
1335 | struct mtd_part_parser_data ppdata = {}; | ||
1335 | 1336 | ||
1336 | pdata = pdev->dev.platform_data; | 1337 | pdata = pdev->dev.platform_data; |
1337 | if (pdata == NULL) { | 1338 | if (pdata == NULL) { |
@@ -1557,7 +1558,8 @@ static int omap_nand_probe(struct platform_device *pdev) | |||
1557 | goto out_release_mem_region; | 1558 | goto out_release_mem_region; |
1558 | } | 1559 | } |
1559 | 1560 | ||
1560 | mtd_device_parse_register(&info->mtd, NULL, NULL, pdata->parts, | 1561 | ppdata.of_node = pdata->of_node; |
1562 | mtd_device_parse_register(&info->mtd, NULL, &ppdata, pdata->parts, | ||
1561 | pdata->nr_parts); | 1563 | pdata->nr_parts); |
1562 | 1564 | ||
1563 | platform_set_drvdata(pdev, &info->mtd); | 1565 | platform_set_drvdata(pdev, &info->mtd); |