video: rockchip: rga3: fixed crash caused by failure to get_clk

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic6ead5efae8ca63e2e6960a7990a0d936b9d75a8
This commit is contained in:
Yu Qiaowei
2024-03-15 18:19:30 +08:00
committed by Tao Huang
parent 8c61367c57
commit 78f5fae279

View File

@@ -1413,8 +1413,10 @@ static int rga_drv_probe(struct platform_device *pdev)
for (i = 0; i < match_data->num_clks; i++) {
struct clk *clk = devm_clk_get(dev, match_data->clks[i]);
if (IS_ERR(clk))
if (IS_ERR(clk)) {
pr_err("failed to get %s\n", match_data->clks[i]);
return PTR_ERR(clk);
}
scheduler->clks[i] = clk;
}