diff options
Diffstat (limited to 'arch/arm/plat-mxc/devices.c')
-rw-r--r-- | arch/arm/plat-mxc/devices.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/plat-mxc/devices.c index e9bcefe79a43..eee1b6096a08 100644 --- a/arch/arm/plat-mxc/devices.c +++ b/arch/arm/plat-mxc/devices.c | |||
@@ -81,6 +81,8 @@ struct platform_device *__init imx_add_platform_device_dmamask( | |||
81 | ret = platform_device_add(pdev); | 81 | ret = platform_device_add(pdev); |
82 | if (ret) { | 82 | if (ret) { |
83 | err: | 83 | err: |
84 | if (dmamask) | ||
85 | kfree(pdev->dev.dma_mask); | ||
84 | platform_device_put(pdev); | 86 | platform_device_put(pdev); |
85 | return ERR_PTR(ret); | 87 | return ERR_PTR(ret); |
86 | } | 88 | } |