Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal/drivers/hisi: Fix wrong platform_get_irq_byname()

Without this patch, the thermal driver on hi6220 and hi3660 is broken.

That is due because part of the posted patchset was merged but a small
change in the DT was dropped.

The hi6220 and hi3660 do not have an interrupt name in the DT, so
finding interrupt by name fails.

Fix this by returning back to the platform_get_irq() function call.

Fixes: 2cffaeff083f (thermal/drivers/hisi: Use platform_get_irq_byname)
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

authored by

Daniel Lezcano and committed by
Eduardo Valentin
5d7ab8f0 40e020c1

+1 -1
+1 -1
drivers/thermal/hisi_thermal.c
··· 589 589 return ret; 590 590 } 591 591 592 - ret = platform_get_irq_byname(pdev, sensor->irq_name); 592 + ret = platform_get_irq(pdev, 0); 593 593 if (ret < 0) 594 594 return ret; 595 595