thermal: int340x_thermal: Fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Dec 2018 07:02:42 +0000 (10:02 +0300)
committerZhang Rui <rui.zhang@intel.com>
Thu, 10 Jan 2019 14:43:59 +0000 (22:43 +0800)
commit3fe931b31a4078395c1967f0495dcc9e5ec6b5e3
treefc36e52ef9f9dab37c1aa9417a94c5c89104c4b5
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
thermal: int340x_thermal: Fix a NULL vs IS_ERR() check

The intel_soc_dts_iosf_init() function doesn't return NULL, it returns
error pointers.

Fixes: 4d0dd6c1576b ("Thermal/int340x/processor_thermal: Enable auxiliary DTS for Braswell")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c