lkml.org 
[lkml]   [2003]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix "echo -n 3 > /sys/.../power/state"
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.040 / U:1.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site