mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
media: hantro: Fix check for single irq
Some cores use only one interrupt and in such case interrupt name in DT
is not needed. Driver supposedly accounted that, but due to the wrong
field check it never worked. Fix that.
Fixes: 18d6c8b7b4 ("media: hantro: add fallback handling for single irq/clk")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.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
a466530b3a
commit
95a10c4eb3
@@ -921,7 +921,7 @@ static int hantro_probe(struct platform_device *pdev)
|
||||
if (!vpu->variant->irqs[i].handler)
|
||||
continue;
|
||||
|
||||
if (vpu->variant->num_clocks > 1) {
|
||||
if (vpu->variant->num_irqs > 1) {
|
||||
irq_name = vpu->variant->irqs[i].name;
|
||||
irq = platform_get_irq_byname(vpu->pdev, irq_name);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user