mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 12:10:23 -04:00
media: hantro: test the correct variable in probe()
This should be testing "vpu->clocks[0].clk" instead of "vpu->clocks".
Fixes: eb4cacdfb998 ("media: hantro: add fallback handling for single irq/clk")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
99c2caa645
commit
66933f4b90
@@ -783,8 +783,8 @@ static int hantro_probe(struct platform_device *pdev)
|
||||
* actual name in the DT bindings.
|
||||
*/
|
||||
vpu->clocks[0].clk = devm_clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(vpu->clocks))
|
||||
return PTR_ERR(vpu->clocks);
|
||||
if (IS_ERR(vpu->clocks[0].clk))
|
||||
return PTR_ERR(vpu->clocks[0].clk);
|
||||
}
|
||||
|
||||
num_bases = vpu->variant->num_regs ?: 1;
|
||||
|
||||
Reference in New Issue
Block a user