diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mxs/devices.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/devices.c b/arch/arm/mach-mxs/devices.c index c20d54740b0b..cfdb6b284702 100644 --- a/arch/arm/mach-mxs/devices.c +++ b/arch/arm/mach-mxs/devices.c | |||
@@ -66,6 +66,8 @@ struct platform_device *__init mxs_add_platform_device_dmamask( | |||
66 | ret = platform_device_add(pdev); | 66 | ret = platform_device_add(pdev); |
67 | if (ret) { | 67 | if (ret) { |
68 | err: | 68 | err: |
69 | if (dmamask) | ||
70 | kfree(pdev->dev.dma_mask); | ||
69 | platform_device_put(pdev); | 71 | platform_device_put(pdev); |
70 | return ERR_PTR(ret); | 72 | return ERR_PTR(ret); |
71 | } | 73 | } |