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

From: Russell King
Date: Wed Dec 31 2003 - 17:44:25 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/