Commit 43f02a6c authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Inki Dae

drm/exynos: rotator: convert to common clock framework

This driver was not used after introduction of common clock framework.
This patch adds missing prepare/unprepare calls and allows to use it
again with current kernel code.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent aeefb368
...@@ -790,10 +790,10 @@ static int rotator_remove(struct platform_device *pdev) ...@@ -790,10 +790,10 @@ static int rotator_remove(struct platform_device *pdev)
static int rotator_clk_crtl(struct rot_context *rot, bool enable) static int rotator_clk_crtl(struct rot_context *rot, bool enable)
{ {
if (enable) { if (enable) {
clk_enable(rot->clock); clk_prepare_enable(rot->clock);
rot->suspended = false; rot->suspended = false;
} else { } else {
clk_disable(rot->clock); clk_disable_unprepare(rot->clock);
rot->suspended = true; rot->suspended = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment