thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Jun 2020 09:19:49 +0000 (12:19 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 21 Jul 2020 13:13:17 +0000 (15:13 +0200)
commit0f348db01fdf128813fdd659fcc339038fb421a4
treeb9b79634a7f00e2e73a25bdb7316b5e480230d72
parent8bcd0178d37bdbb90cf8502518e9720ea51e2d51
thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()

This condition is reversed and will cause breakage.

Fixes: 7440f518dad9 ("thermal/drivers/ti-soc-thermal: Avoid dereferencing ERR_PTR")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200616091949.GA11940@mwanda
drivers/thermal/ti-soc-thermal/ti-thermal-common.c