Commit 16641d81 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

Merge branches 'pm-avs' and 'powercap'

* pm-avs:
  MAINTAINERS: drop myself from PM AVS drivers
  PM: AVS: qcom-cpr: simplify the return expression of cpr_disable()

* powercap:
  powercap: include header to fix -Wmissing-prototypes
...@@ -5374,7 +5374,6 @@ F: include/linux/kobj* ...@@ -5374,7 +5374,6 @@ F: include/linux/kobj*
F: lib/kobj* F: lib/kobj*
DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS) DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS)
M: Kevin Hilman <khilman@kernel.org>
M: Nishanth Menon <nm@ti.com> M: Nishanth Menon <nm@ti.com>
L: linux-pm@vger.kernel.org L: linux-pm@vger.kernel.org
S: Maintained S: Maintained
......
...@@ -665,8 +665,6 @@ static int cpr_enable(struct cpr_drv *drv) ...@@ -665,8 +665,6 @@ static int cpr_enable(struct cpr_drv *drv)
static int cpr_disable(struct cpr_drv *drv) static int cpr_disable(struct cpr_drv *drv)
{ {
int ret;
mutex_lock(&drv->lock); mutex_lock(&drv->lock);
if (cpr_is_allowed(drv)) { if (cpr_is_allowed(drv)) {
...@@ -676,11 +674,7 @@ static int cpr_disable(struct cpr_drv *drv) ...@@ -676,11 +674,7 @@ static int cpr_disable(struct cpr_drv *drv)
mutex_unlock(&drv->lock); mutex_unlock(&drv->lock);
ret = regulator_disable(drv->vdd_apc); return regulator_disable(drv->vdd_apc);
if (ret)
return ret;
return 0;
} }
static int cpr_config(struct cpr_drv *drv) static int cpr_config(struct cpr_drv *drv)
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/smpboot.h> #include <linux/smpboot.h>
#include <linux/idle_inject.h>
#include <uapi/linux/sched/types.h> #include <uapi/linux/sched/types.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment