Skip to content

Commit 21b2871

Browse files
Hsiao Chien SungChun-Kuang Hu
authored andcommitted
drm/mediatek: Return error if MDP RDMA failed to enable the clock
Return the result of clk_prepare_enable() instead of always returns 0. Fixes: f8946e2 ("drm/mediatek: Add display MDP RDMA support for MT8195") Reviewed-by: CK Hu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Hsiao Chien Sung <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent ba527e9 commit 21b2871

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/mediatek/mtk_mdp_rdma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ int mtk_mdp_rdma_clk_enable(struct device *dev)
262262
{
263263
struct mtk_mdp_rdma *rdma = dev_get_drvdata(dev);
264264

265-
clk_prepare_enable(rdma->clk);
266-
return 0;
265+
return clk_prepare_enable(rdma->clk);
267266
}
268267

269268
void mtk_mdp_rdma_clk_disable(struct device *dev)

0 commit comments

Comments
 (0)