1
0
Fork 0

- Fix backward compatibility with old DTBs on QCOM tsens (Amit Kucheria)

-----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQRuKdf4M92Gi9vqihve5qtOL396pgUCXhQyogAKCRDe5qtOL396
 puHcAQC2B5eXcxXeEEdIDsK6xMJMIkikyTUTiBeBPVesOd3QQQD/XuD65VfOLCbO
 ZLEzpsEyX9zY194Ga8u0ovyRovjW6gw=
 =Xoh0
 -----END PGP SIGNATURE-----

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
alistair/sunxi64-5.5-dsi
Linus Torvalds 2020-01-10 11:48:37 -08:00
commit 658e1af5ee
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ static int tsens_register(struct tsens_priv *priv)
irq = platform_get_irq_byname(pdev, "uplow");
if (irq < 0) {
ret = irq;
/* For old DTs with no IRQ defined */
if (irq == -ENXIO)
ret = 0;
goto err_put_device;
}