Skip to content

Commit 658e1af

Browse files
committed
Merge tag 'thermal-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux
Pull thermal fix from Daniel Lezcano: "Fix backward compatibility with old DTBs on QCOM tsens (Amit Kucheria)" * tag 'thermal-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux: drivers: thermal: tsens: Work with old DTBs
2 parents c23e744 + 344fa0b commit 658e1af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/thermal/qcom/tsens.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ static int tsens_register(struct tsens_priv *priv)
110110
irq = platform_get_irq_byname(pdev, "uplow");
111111
if (irq < 0) {
112112
ret = irq;
113+
/* For old DTs with no IRQ defined */
114+
if (irq == -ENXIO)
115+
ret = 0;
113116
goto err_put_device;
114117
}
115118

0 commit comments

Comments
 (0)