Skip to content
Commit 2e28f7dd authored by Christian Marangi's avatar Christian Marangi Committed by Greg Kroah-Hartman
Browse files

thermal/drivers/tsens: Fix wrong check for tzd in irq handlers



[ Upstream commit cf969218 ]

Some devices can have some thermal sensors disabled from the
factory. The current two irq handler functions check all the sensor by
default and the check if the sensor was actually registered is
wrong. The tzd is actually never set if the registration fails hence
the IS_ERR check is wrong.

Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
Reviewed-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210907212543.20220-1-ansuelsmth@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7a670cfb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment