Skip to content

Commit df016bb

Browse files
Sergei ShtylyovEduardo Valentin
authored andcommitted
thermal: rcar_thermal: fix duplicate IRQ request
The driver on R8A77995 requests the same IRQ twice since platform_get_resource() is always called for the 1st IRQ resource. Fixes: 1969d9d ("thermal: rcar_thermal: add r8a77995 support") Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Simon Horman <horms+renesas@verge.net.au> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent 304d9b4 commit df016bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/rcar_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ static int rcar_thermal_probe(struct platform_device *pdev)
504504
pm_runtime_get_sync(dev);
505505

506506
for (i = 0; i < chip->nirqs; i++) {
507-
irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
507+
irq = platform_get_resource(pdev, IORESOURCE_IRQ, i);
508508
if (!irq)
509509
continue;
510510
if (!common->base) {

0 commit comments

Comments
 (0)