mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user