]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drivers: thermal: tsens: Work with old DTBs
authorAmit Kucheria <amit.kucheria@linaro.org>
Thu, 12 Dec 2019 10:38:14 +0000 (16:08 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 7 Jan 2020 07:22:35 +0000 (08:22 +0100)
commit344fa0bad6932204146d305607790340f2324a90
treecb6e2ee1084b2bfe43d327024ab558020b37c179
parentc79f46a282390e0f5b306007bf7b11a46d529538
drivers: thermal: tsens: Work with old DTBs

In order for the old DTBs to continue working, the new interrupt code
must not return an error if interrupts are not defined. Don't return an
error in case of -ENXIO.

Fixes: 634e11d5b450a ("drivers: thermal: tsens: Add interrupt support")
Suggested-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/cea3317c5d793db312064d68b261ad420a4a81b1.1576146898.git.amit.kucheria@linaro.org
drivers/thermal/qcom/tsens.c