]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: fix clk enable disable mismatch in vop_crtc_mode_set
authorHeiko Stuebner <heiko@sntech.de>
Fri, 30 Jan 2015 19:28:48 +0000 (20:28 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Fri, 3 Apr 2015 06:23:01 +0000 (14:23 +0800)
commitaa3e3f496d80f75f7d21a427dc0cffa0b7d5df32
treefda31bfb904bacd7c0011fc84cfd78b70ac8d047
parentfb918daede79959ad8477f1cd417b8407a86b925
drm/rockchip: fix clk enable disable mismatch in vop_crtc_mode_set

The function disables the dclk at the beginning, so don't simply return
when an error happens, but instead enable the clock again, so that
enable and disable calls are balanced.

ret_clk is introduced to hold the clk_enable result and not mangle the
original error code.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c