media: hantro: test the correct variable in probe()
Subsystems (4)
PATCH 1/1 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 <[email protected]>
--- drivers/staging/media/hantro/hantro_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/hantro/hantro_drv.c +2 -2
@@ -780,8 +780,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 ;
Signature · 1 line
2.30.2
Hi Dan,
Thank you for the patch.
Quoted 4 lines · Dan Carpenter
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 <[email protected]>
Reviewed-by Emil Velikov <[email protected]>
-Emil