Merge branches 'pm-cpuidle', 'pm-opp' and 'pm-avs'
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Oct 2016 23:43:16 +0000 (01:43 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Oct 2016 23:43:16 +0000 (01:43 +0200)
* pm-cpuidle:
  ARM: cpuidle: Fix error return code

* pm-opp:
  PM / OPP: Don't support OPP if it provides supported-hw but platform does not
  PM / OPP: avoid maybe-uninitialized warning

* pm-avs:
  PM / AVS: SmartReflex: Neaten logging

1  2  3  4 
drivers/cpuidle/cpuidle-arm.c

    static int arm_enter_idle_state(struct cpuidle_device *dev,
                                struct cpuidle_driver *drv, int idx)
    {
 -      int ret;
 -  
 -      if (!idx) {
 -              cpu_do_idle();
 -              return idx;
 -      }
 -  
 -      ret = cpu_pm_enter();
 -      if (!ret) {
 -              /*
 -               * Pass idle state index to cpu_suspend which in turn will
 -               * call the CPU ops suspend protocol with idle index as a
 -               * parameter.
 -               */
 -              ret = arm_cpuidle_suspend(idx);
 -  
 -              cpu_pm_exit();
 -      }
 -  
 -      return ret ? -1 : idx;
 +      /*
 +       * Pass idle state index to arm_cpuidle_suspend which in turn
 +       * will call the CPU ops suspend protocol with idle index as a
 +       * parameter.
 +       */
 +      return CPU_PM_CPU_IDLE_ENTER(arm_cpuidle_suspend, idx);
    }
    
    static struct cpuidle_driver arm_idle_driver = {
@@@@@ -121,6 -135,7 -121,6 -121,6 +121,7 @@@@@ static int __init arm_idle_init(void
                dev = kzalloc(sizeof(*dev), GFP_KERNEL);
                if (!dev) {
                        pr_err("Failed to allocate cpuidle device\n");
+ ++                    ret = -ENOMEM;
                        goto out_fail;
                }
                dev->cpu = cpu;