]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: video: vop: Fix rk_display_init() return error
authorEric Gao <eric.gao@rock-chips.com>
Tue, 2 May 2017 10:23:51 +0000 (18:23 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:22 +0000 (13:37 -0600)
commite07e5bde7c2386172994035603d5e2781cdf3bda
tree6550d24877f04a0cbe8cbadd0b262b367aa2bc3b
parent1c3984041ce39ac9fe5ed24fca49cb2c17dc156a
rockchip: video: vop: Fix rk_display_init() return error

It's caused by the difference of clk_set_rate function implement between
rk3288 andd rk3399.

clk_set_rate() of rk3288 return 0 in normal condition.
clk_set_rate() of rk3399 return input parameter in normal condition.

So check clk_set_rate's return value by IS_ERR_VALUE.

Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
drivers/video/rockchip/rk_vop.c