diff options
author | Rajendra Nayak <rnayak@ti.com> | 2013-06-13 16:17:11 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-06-18 09:09:57 +0200 |
commit | 86d4d78c320d335c2699d4897720b8eb1b934e47 (patch) | |
tree | 71fe0a702b253c4c698e1249a55cf88a86c1b089 /arch/arm/plat-omap | |
parent | ARM: OMAP: dma: Fix the dma_chan_link_map init order (diff) | |
download | linux-86d4d78c320d335c2699d4897720b8eb1b934e47.tar.xz linux-86d4d78c320d335c2699d4897720b8eb1b934e47.zip |
ARM: OMAP: dma: Remove the erroneous freeing of platform data
Given p = pdev->dev.platform_data; and
d = p->dma_attr;
the freeing of either one of these by the driver
seems just plain wrong.
Get rid of them in the .probe failure path as well as the
.remove.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 8a71f7536f29..4d463ca6821f 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -2111,8 +2111,6 @@ exit_dma_irq_fail: } exit_dma_lch_fail: - kfree(p); - kfree(d); kfree(dma_chan); return ret; } @@ -2133,8 +2131,6 @@ static int omap_system_dma_remove(struct platform_device *pdev) free_irq(dma_irq, (void *)(irq_rel + 1)); } } - kfree(p); - kfree(d); kfree(dma_chan); return 0; } |