thermal: qcom: tsens: Fix return value check in init_common()
authorWei Yongjun <weiyj.lk@gmail.com>
Sat, 30 Jul 2016 06:32:37 +0000 (06:32 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 24 Aug 2016 07:53:08 +0000 (15:53 +0800)
commitbc2ca696f6907c26ae6ff7957bb8b4deb5a43039
treef9e59e9de7de1d62ff0dba8430c79c5fdc07d445
parentdc62538db9d38361a035b30b958d3cafef7323c1
thermal: qcom: tsens: Fix return value check in init_common()

In case of error, the function of_iomap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
And the function devm_regmap_init_mmio() returns ERR_PTR()
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/qcom/tsens-common.c
This page took 0.024247 seconds and 5 git commands to generate.