Skip to content

Commit 82c66d2

Browse files
Ansuelchanwoochoi
authored andcommitted
PM / devfreq: Fix kernel warning with cpufreq passive register fail
Remove cpufreq_passive_unregister_notifier from cpufreq_passive_register_notifier in case of error as devfreq core already call unregister on GOV_START fail. This fix the kernel always printing a WARN on governor PROBE_DEFER as cpufreq_passive_unregister_notifier is called two times and return error on the second call as the cpufreq is already unregistered. Fixes: a03dacb ("PM / devfreq: Add cpu based scaling support to passive governor") Signed-off-by: Christian Marangi <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent b5d281f commit 82c66d2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/devfreq/governor_passive.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ static int cpufreq_passive_register_notifier(struct devfreq *devfreq)
330330
err_put_policy:
331331
cpufreq_cpu_put(policy);
332332
err:
333-
WARN_ON(cpufreq_passive_unregister_notifier(devfreq));
334333

335334
return ret;
336335
}

0 commit comments

Comments
 (0)