drm/exynos: remove unnecessary devm_kfree
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 22 May 2013 12:14:16 +0000 (21:14 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 23 May 2013 10:48:38 +0000 (19:48 +0900)
devm_kfree does not need for fail case of probe function and for
remove function.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gsc.c
drivers/gpu/drm/exynos/exynos_drm_rotator.c

index 487595ac51a8932fdc9dc54504af0e933fc0a062..98032d6c62c3a2f0cb347d7691b465a090ff7310 100644 (file)
@@ -1748,7 +1748,6 @@ static int gsc_probe(struct platform_device *pdev)
        return 0;
 
 err_ippdrv_register:
-       devm_kfree(dev, ippdrv->prop_list);
        pm_runtime_disable(dev);
 err_get_irq:
        free_irq(ctx->irq, ctx);
@@ -1761,7 +1760,6 @@ static int gsc_remove(struct platform_device *pdev)
        struct gsc_context *ctx = get_gsc_context(dev);
        struct exynos_drm_ippdrv *ippdrv = &ctx->ippdrv;
 
-       devm_kfree(dev, ippdrv->prop_list);
        exynos_drm_ippdrv_unregister(ippdrv);
        mutex_destroy(&ctx->lock);
 
index 947f09f15ad1abe53179b77d330db5602a936dc5..3aa502a6cf2105b6fb713037c66e17e9c9af5877 100644 (file)
@@ -709,7 +709,6 @@ static int rotator_probe(struct platform_device *pdev)
        return 0;
 
 err_ippdrv_register:
-       devm_kfree(dev, ippdrv->prop_list);
        pm_runtime_disable(dev);
 err_clk_get:
        free_irq(rot->irq, rot);
@@ -722,7 +721,6 @@ static int rotator_remove(struct platform_device *pdev)
        struct rot_context *rot = dev_get_drvdata(dev);
        struct exynos_drm_ippdrv *ippdrv = &rot->ippdrv;
 
-       devm_kfree(dev, ippdrv->prop_list);
        exynos_drm_ippdrv_unregister(ippdrv);
 
        pm_runtime_disable(dev);