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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:57 +0000 (08:23 +0200)
commit8ba5991753dc16daa86c063809f5aa1fac5b6672
tree9279616057b7ff8b5c6480078c898434419c812d
parentc7adb1632b3e7dc6686438c60758a6126c06cdbe
thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()

[ Upstream commit 0f348db01fdf128813fdd659fcc339038fb421a4 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/ti-soc-thermal/ti-thermal-common.c