drm/exynos: rotator: convert to common clock framework
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Nov 2015 13:53:19 +0000 (14:53 +0100)
committerInki Dae <daeinki@gmail.com>
Sun, 13 Dec 2015 13:22:53 +0000 (22:22 +0900)
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: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_rotator.c

index 2f5c118f4c8ef5ea27a68532756ca77549e325f4..bea0f7826d30a168022c79598c9cea6f4641afcd 100644 (file)
@@ -790,10 +790,10 @@ static int rotator_remove(struct platform_device *pdev)
 static int rotator_clk_crtl(struct rot_context *rot, bool enable)
 {
        if (enable) {
-               clk_enable(rot->clock);
+               clk_prepare_enable(rot->clock);
                rot->suspended = false;
        } else {
-               clk_disable(rot->clock);
+               clk_disable_unprepare(rot->clock);
                rot->suspended = true;
        }