ipq806x: 5:15: fix dedicated krait cpufreq
[openwrt/staging/chunkeey.git] / target / linux / ipq806x / patches-5.15 / 098-3-add-fab-scaling-support-with-cpufreq.patch
index 8ce3f062cff6c2c145a97b8e5518b9a30df8bf98..28eb22d269cfb78658a6c1cf98ed354c0158b406 100644 (file)
  #include "cpufreq-dt.h"
  
 @@ -68,6 +69,13 @@ static int set_target(struct cpufreq_pol
-                       return -EINVAL;
+                       goto l2_scale_fail;
                }
  
 +              /*
 +               */
 +              ret = scale_fabrics(target_freq);
 +              if (ret)
-+                      return ret;
++                      goto l2_scale_fail;
 +
-               opp = dev_pm_opp_find_level_exact(&l2_pdev->dev, level);
+               opp = dev_pm_opp_find_level_exact(l2_dev, level);
                if (IS_ERR(opp)) {
-                       dev_err(&l2_pdev->dev,
+                       dev_err(l2_dev,