Skip to content

Commit 42d2607

Browse files
chanwoochoirafaeljw
authored andcommitted
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>
1 parent d44d6c4 commit 42d2607

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/devfreq/governor_passive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static int devfreq_passive_event_handler(struct devfreq *devfreq,
402402
{
403403
struct devfreq_passive_data *p_data
404404
= (struct devfreq_passive_data *)devfreq->data;
405-
int ret = -EINVAL;
405+
int ret = 0;
406406

407407
if (!p_data)
408408
return -EINVAL;

0 commit comments

Comments
 (0)