Commit 4da120fa authored by Russell King's avatar Russell King Committed by Linus Torvalds

[PATCH] Fix "echo -n 3 > /sys/.../power/state"

Fix what seems to be a typo preventing .../power/state from working.
parent 1affb93b
......@@ -36,7 +36,7 @@ static ssize_t state_store(struct device * dev, const char * buf, size_t n)
int error = 0;
state = simple_strtoul(buf,&rest,10);
if (rest)
if (*rest)
return -EINVAL;
if (state)
error = dpm_runtime_suspend(dev,state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment