Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 809eb350 authored by Wei Yongjun's avatar Wei Yongjun Committed by Zhang Rui
Browse files

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: default avatarWei Yongjun <weiyj.lk@gmail.com>
Acked-by: default avatarRajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 5ef62de7
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