]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite85a3110b78166fe1de409a61fe1ab25562c37d3
tree153764ca0577629f6575bd35f1bc5113fb4198a5
parent75777cd93e6a077128ee2f19e7c9acbf2f46ae17
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: 9918a8d3d6d2 ("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