drm/mediatek: add a error return value when clock driver has been prepared
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Wed, 3 Oct 2018 03:41:51 +0000 (11:41 +0800)
committerCK Hu <ck.hu@mediatek.com>
Wed, 3 Oct 2018 03:56:33 +0000 (11:56 +0800)
commit84dacb9cad2804a9f5434b775ccea6aa5d9fc6ca
tree6cb9c63db40f40e8ad64112734830643a1c091f3
parent014e604196bddbd3a0186775e02bc5574bed18d4
drm/mediatek: add a error return value when clock driver has been prepared

DRM driver get the comp->clk by of_clk_get(), we only
assign NULL to comp->clk when error happened, but do
not return the error number.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c