]> 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)
commitb46fb7583a2fee9104823d6f25b76c63731aae86
treefda31bfb904bacd7c0011fc84cfd78b70ac8d047
parent4342cb3b3bad6ea61b393ab7aaf84f206f5da29a
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