diff options
| author | Russell King <rmk+lkml@arm.linux.org.uk> | 2003-12-31 00:41:45 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-31 00:41:45 -0800 |
| commit | 4da120fa5e227572a9bd42ab34f340ef6c4494b3 (patch) | |
| tree | b6044b4d75a9e7e587c428e40fe9c6afbd47ff53 /drivers/base | |
| parent | 1affb93bce6823ef6e1e66bc99cb75bda312eada (diff) | |
[PATCH] Fix "echo -n 3 > /sys/.../power/state"
Fix what seems to be a typo preventing .../power/state from working.
Diffstat (limited to 'drivers/base')
| -rw-r--r-- | drivers/base/power/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/sysfs.c b/drivers/base/power/sysfs.c index 0fddee58893f..683dd59b0bff 100644 --- a/drivers/base/power/sysfs.c +++ b/drivers/base/power/sysfs.c @@ -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); |
