diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-12-24 14:03:48 +0530 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2013-01-04 15:54:35 +0900 |
commit | af8cd946136a1c1e9614ac9f9fc78e58654582ac (patch) | |
tree | 1b4228969d52d7de38b3c7dc32b4d31ef111996f /drivers/gpu/drm/exynos | |
parent | df257a8db416cdae87fe0e31287a3df86dd8ba5a (diff) | |
download | kernel-common-af8cd946136a1c1e9614ac9f9fc78e58654582ac.tar.gz kernel-common-af8cd946136a1c1e9614ac9f9fc78e58654582ac.tar.bz2 kernel-common-af8cd946136a1c1e9614ac9f9fc78e58654582ac.zip |
drm/exynos: Use devm_clk_get in exynos_drm_rotator.c
This eliminates the need for explicit clk_put and makes the
cleanup and exit path code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_rotator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index 77bd6fd84e1c..cc553a66cfa7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -675,7 +675,7 @@ static int __devinit rotator_probe(struct platform_device *pdev) return ret; } - rot->clock = clk_get(dev, "rotator"); + rot->clock = devm_clk_get(dev, "rotator"); if (IS_ERR_OR_NULL(rot->clock)) { dev_err(dev, "failed to get clock\n"); ret = PTR_ERR(rot->clock); @@ -713,7 +713,6 @@ static int __devinit rotator_probe(struct platform_device *pdev) err_ippdrv_register: devm_kfree(dev, ippdrv->prop_list); pm_runtime_disable(dev); - clk_put(rot->clock); err_clk_get: free_irq(rot->irq, rot); return ret; @@ -729,7 +728,6 @@ static int __devexit rotator_remove(struct platform_device *pdev) exynos_drm_ippdrv_unregister(ippdrv); pm_runtime_disable(dev); - clk_put(rot->clock); free_irq(rot->irq, rot); |