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)
commit7f53fbba3cf8db8f584b26e89802413bc2e8d902
treefda31bfb904bacd7c0011fc84cfd78b70ac8d047
parent502e95c6678505474f1056480310cd9382bacbac
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