summaryrefslogtreecommitdiff
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-05-20 18:02:49 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-06-02 14:05:50 +0200
commit66933f4b90ddd8abaa2e123e09c51ecc25331b40 (patch)
treebc47e198103499c73fe73de8adf331e58b47ca05 /drivers/staging/media
parent99c2caa64580f999f4552eaeb3ed6f6c5f172d93 (diff)
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>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/hantro/hantro_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c
index 2f6b01c7a6a0..4914987cfd9d 100644
--- a/drivers/staging/media/hantro/hantro_drv.c
+++ b/drivers/staging/media/hantro/hantro_drv.c
@@ -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;