Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Marek Szyprowski and committed by
Inki Dae
43f02a6c aeefb368

+2 -2
+2 -2
drivers/gpu/drm/exynos/exynos_drm_rotator.c
··· 790 790 static int rotator_clk_crtl(struct rot_context *rot, bool enable) 791 791 { 792 792 if (enable) { 793 - clk_enable(rot->clock); 793 + clk_prepare_enable(rot->clock); 794 794 rot->suspended = false; 795 795 } else { 796 - clk_disable(rot->clock); 796 + clk_disable_unprepare(rot->clock); 797 797 rot->suspended = true; 798 798 } 799 799