thermal/drivers/sprd: Fix return value of sprd_thm_probe()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 25 May 2020 01:59:01 +0000 (09:59 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 29 Jun 2020 10:14:07 +0000 (12:14 +0200)
commitb4147917ad4ff2c755e01a7ca296b14030d2d507
tree153764ca0577629f6575bd35f1bc5113fb4198a5
parent14533a5a6c12e8d7de79d309d4085bf186058fe1
thermal/drivers/sprd: Fix return value of sprd_thm_probe()

When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Fixes: 554fdbaf19b1 ("thermal: sprd: Add Spreadtrum thermal driver support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1590371941-25430-1-git-send-email-yangtiezhu@loongson.cn
drivers/thermal/sprd_thermal.c