Skip to content

Commit

Permalink
Merge branches 'pm-avs' and 'powercap'
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
rafaeljw committed Oct 13, 2020
3 parents 2cf9ba2 + bf23e1c + 0061093 commit 16641d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -5374,7 +5374,6 @@ F: include/linux/kobj*
F: lib/kobj*

DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS)
M: Kevin Hilman <[email protected]>
M: Nishanth Menon <[email protected]>
L: [email protected]
S: Maintained
Expand Down
8 changes: 1 addition & 7 deletions drivers/power/avs/qcom-cpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,6 @@ static int cpr_enable(struct cpr_drv *drv)

static int cpr_disable(struct cpr_drv *drv)
{
int ret;

mutex_lock(&drv->lock);

if (cpr_is_allowed(drv)) {
Expand All @@ -676,11 +674,7 @@ static int cpr_disable(struct cpr_drv *drv)

mutex_unlock(&drv->lock);

ret = regulator_disable(drv->vdd_apc);
if (ret)
return ret;

return 0;
return regulator_disable(drv->vdd_apc);
}

static int cpr_config(struct cpr_drv *drv)
Expand Down
1 change: 1 addition & 0 deletions drivers/powercap/idle_inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/smpboot.h>
#include <linux/idle_inject.h>

#include <uapi/linux/sched/types.h>

Expand Down

0 comments on commit 16641d8

Please sign in to comment.