PM / devfreq: passive: Return non-error when not-supported event is required
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 19 May 2022 01:07:53 +0000 (10:07 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 May 2022 17:32:19 +0000 (19:32 +0200)
commit42d2607d91c4ec37ea1970899c2d614824f3014b
tree3484debd592b5a7a999abfc6e46b862857201342
parentd44d6c4a3a5d79410fa2003f0b2e3e773978927f
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>
drivers/devfreq/governor_passive.c