diff --git a/MAINTAINERS b/MAINTAINERS index 33b27e62ce199f6dd5c0d985cfb25659b30a9012..3ad410a1baec38eb6bf0a99c5a0eff97cfa48363 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5374,7 +5374,6 @@ F: include/linux/kobj* F: lib/kobj* DRIVERS FOR ADAPTIVE VOLTAGE SCALING (AVS) -M: Kevin Hilman <khilman@kernel.org> M: Nishanth Menon <nm@ti.com> L: linux-pm@vger.kernel.org S: Maintained diff --git a/drivers/power/avs/qcom-cpr.c b/drivers/power/avs/qcom-cpr.c index bd7c3e48b38600e23d175dd4afd31bcc373c1e23..b24cc77d1889fb75a404cd100975ac97164f7750 100644 --- a/drivers/power/avs/qcom-cpr.c +++ b/drivers/power/avs/qcom-cpr.c @@ -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)) { @@ -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) diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c index 4310901a074ec51aad416f1c47c02b743d253748..6e1a0043c41104665d7da13fdbffce74e0065006 100644 --- a/drivers/powercap/idle_inject.c +++ b/drivers/powercap/idle_inject.c @@ -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>