* [PATCH] Fix "echo -n 3 > /sys/.../power/state"
@ 2003-12-31 22:42 Russell King
0 siblings, 0 replies; only message in thread
From: Russell King @ 2003-12-31 22:42 UTC (permalink / raw)
To: Greg KH, Linux Kernel List
Fix what seems to be a typo preventing .../power/state from working.
--- orig/drivers/base/power/sysfs.c Sat Aug 23 10:10:37 2003
+++ linux/drivers/base/power/sysfs.c Wed Dec 31 22:39:08 2003
@@ -36,7 +36,7 @@
int error = 0;
state = simple_strtoul(buf,&rest,10);
- if (rest)
+ if (*rest)
return -EINVAL;
if (state)
error = dpm_runtime_suspend(dev,state);
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-31 22:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31 22:42 [PATCH] Fix "echo -n 3 > /sys/.../power/state" Russell King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome