diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2018-10-03 16:47:34 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-10-25 13:44:49 -0400 |
commit | df016bbba63743bbef9ff5c6c282561211dd72cc (patch) | |
tree | 74dbba4a85906d44b0a27b627ba50aa5774480a0 | |
parent | 304d9b486b3c6994c193b6693c601b463987e6ac (diff) |
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: 1969d9dc2079 ("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>
-rw-r--r-- | drivers/thermal/rcar_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index e77e63070e99..39366cf69d7f 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c | |||
@@ -504,7 +504,7 @@ static int rcar_thermal_probe(struct platform_device *pdev) | |||
504 | pm_runtime_get_sync(dev); | 504 | pm_runtime_get_sync(dev); |
505 | 505 | ||
506 | for (i = 0; i < chip->nirqs; i++) { | 506 | 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); |
508 | if (!irq) | 508 | if (!irq) |
509 | continue; | 509 | continue; |
510 | if (!common->base) { | 510 | if (!common->base) { |