Skip to content

Commit

Permalink
thermal/drivers/hisi: Fix wrong platform_get_irq_byname()
Browse files Browse the repository at this point in the history
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: 2cffaef (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>
  • Loading branch information
Daniel Lezcano authored and Eduardo Valentin committed Dec 11, 2018
1 parent 40e020c commit 5d7ab8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/hisi_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ static int hisi_thermal_probe(struct platform_device *pdev)
return ret;
}

ret = platform_get_irq_byname(pdev, sensor->irq_name);
ret = platform_get_irq(pdev, 0);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 5d7ab8f

Please sign in to comment.