diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-11-08 13:10:42 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-03 19:31:46 -0400 |
commit | 9834f81314b2a5b1bb3cd0d8f46e61528b60d580 (patch) | |
tree | 6fb62c450a3a6587b312d2f0542b4fe25af7767d /arch/arm/mach-omap2/dma.c | |
parent | 0ef64986d69602ba8df933c62d0b6d6edfaf0557 (diff) |
ARM: omap: move dma channel allocation into plat-omap code
This really needs to be there, because otherwise the plat-omap code can
kfree() this data structure, and then re-use the pointer later.
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/dma.c')
-rw-r--r-- | arch/arm/mach-omap2/dma.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c index 244ff5012aed..9f210d637354 100644 --- a/arch/arm/mach-omap2/dma.c +++ b/arch/arm/mach-omap2/dma.c | |||
@@ -251,13 +251,6 @@ static int __init omap2_system_dma_init_dev(struct omap_hwmod *oh, void *unused) | |||
251 | } | 251 | } |
252 | 252 | ||
253 | d = oh->dev_attr; | 253 | d = oh->dev_attr; |
254 | d->chan = kzalloc(sizeof(struct omap_dma_lch) * | ||
255 | (d->lch_count), GFP_KERNEL); | ||
256 | |||
257 | if (!d->chan) { | ||
258 | dev_err(&pdev->dev, "%s: kzalloc fail\n", __func__); | ||
259 | return -ENOMEM; | ||
260 | } | ||
261 | 254 | ||
262 | if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP)) | 255 | if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP)) |
263 | d->dev_caps |= HS_CHANNELS_RESERVED; | 256 | d->dev_caps |= HS_CHANNELS_RESERVED; |