On Thu, Mar 4, 2021 at 5:55 PM 'Wei Yongjun <weiyongjun1@xxxxxxxxxx> wrote: > > From: Wei Yongjun <weiyongjun1@xxxxxxxxxx> > > In case of error, the function ioremap() returns NULL pointer > not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. > > Fixes: 67fc209b527d ("cpufreq: qcom-hw: drop devm_xxx() calls from init/exit hooks") > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> > Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx> Acked-by: Shawn Guo <shawn.guo@xxxxxxxxxx>