Merge tag 'mm-hotfixes-stable-2023-08-11-13-44' of git://git.kernel.org/pub/scm/linux...
[platform/kernel/linux-rpi.git] / drivers / cpufreq / apple-soc-cpufreq.c
index c11d22f..021f423 100644 (file)
@@ -189,8 +189,8 @@ static int apple_soc_cpufreq_find_cluster(struct cpufreq_policy *policy,
        *info = match->data;
 
        *reg_base = of_iomap(args.np, 0);
-       if (IS_ERR(*reg_base))
-               return PTR_ERR(*reg_base);
+       if (!*reg_base)
+               return -ENOMEM;
 
        return 0;
 }