PM / devfreq: Fix governor_store()
MyungJoo Ham
AppliedQuoted 6 lines
Writing the currently set governor into sysfs currently seems to fail.
Fix this by setting the return code to zero before leavinggovernor_store().Signed-off-by Tobias Jakobi <[email protected]>
Thank you for pointing that out.
Applied.
Cheers,
MyungJoo
Quoted 22 lines
--- drivers/devfreq/devfreq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/devfreq/devfreq.c +3
-1@@ -795,8 +795,10 @@ static ssize_t governor_store(struct device *dev, struct device_attribute *attr, ret =PTR_ERR (governor); goto out; } -if (df->governor == governor) +if (df->governor == governor) { + ret =0 ; goto out; + }if (df->governor) { ret = df->governor->event_handler (df,DEVFREQ_GOV_STOP ,NULL );Signature · 1 line
2.0.5