Re: [PATCH] thermal: sprd: Fix return value of sprd_thm_probe()

2020-06-29 Thread Amit Kucheria
On Fri, May 29, 2020 at 7:55 PM Baolin Wang wrote: > > Hi, > > On Mon, May 25, 2020 at 10:00 AM Tiezhu Yang wrote: > > > > 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

Re: [PATCH] thermal: sprd: Fix return value of sprd_thm_probe()

2020-05-29 Thread Baolin Wang
Hi, On Mon, May 25, 2020 at 10:00 AM Tiezhu Yang wrote: > > 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:

[PATCH] thermal: sprd: Fix return value of sprd_thm_probe()

2020-05-24 Thread Tiezhu Yang
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 --- drivers/thermal/sprd_thermal.c | 4 ++-- 1 file