Skip to content

Commit 16641d8

Browse files
committed
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
3 parents 2cf9ba2 + bf23e1c + 0061093 commit 16641d8

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5374,7 +5374,6 @@ F: include/linux/kobj*
53745374
F: lib/kobj*
53755375

53765376
DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS)
5377-
M: Kevin Hilman <khilman@kernel.org>
53785377
M: Nishanth Menon <nm@ti.com>
53795378
L: linux-pm@vger.kernel.org
53805379
S: Maintained

drivers/power/avs/qcom-cpr.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,6 @@ static int cpr_enable(struct cpr_drv *drv)
665665

666666
static int cpr_disable(struct cpr_drv *drv)
667667
{
668-
int ret;
669-
670668
mutex_lock(&drv->lock);
671669

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

677675
mutex_unlock(&drv->lock);
678676

679-
ret = regulator_disable(drv->vdd_apc);
680-
if (ret)
681-
return ret;
682-
683-
return 0;
677+
return regulator_disable(drv->vdd_apc);
684678
}
685679

686680
static int cpr_config(struct cpr_drv *drv)

drivers/powercap/idle_inject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <linux/sched.h>
4444
#include <linux/slab.h>
4545
#include <linux/smpboot.h>
46+
#include <linux/idle_inject.h>
4647

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

0 commit comments

Comments
 (0)