summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2022-05-19 03:07:53 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-05-19 19:32:19 +0200
commit42d2607d91c4ec37ea1970899c2d614824f3014b (patch)
tree3484debd592b5a7a999abfc6e46b862857201342 /drivers/devfreq
parentMerge tag 'devfreq-next-for-5.19' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-42d2607d91c4ec37ea1970899c2d614824f3014b.tar.xz
linux-42d2607d91c4ec37ea1970899c2d614824f3014b.zip
PM / devfreq: passive: Return non-error when not-supported event is required
Each devfreq governor specifies the supported governor event such as GOV_START and GOV_STOP. When not-supported event is required, just return non-error. But, commit ce9a0d88d97a ("PM / devfreq: Add cpu based scaling support to passive governor") returned the error value. So that return non-error value when not-supported event is required. Fixes: ce9a0d88d97a ("PM / devfreq: Add cpu based scaling support to passive governor") Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r--drivers/devfreq/governor_passive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_passive.c b/drivers/devfreq/governor_passive.c
index 7306e943a234..72c67979ebe1 100644
--- a/drivers/devfreq/governor_passive.c
+++ b/drivers/devfreq/governor_passive.c
@@ -402,7 +402,7 @@ static int devfreq_passive_event_handler(struct devfreq *devfreq,
{
struct devfreq_passive_data *p_data
= (struct devfreq_passive_data *)devfreq->data;
- int ret = -EINVAL;
+ int ret = 0;
if (!p_data)
return -EINVAL;