Messages in this thread Patch in this message | | | Date | Wed, 31 Dec 2003 22:42:55 +0000 | From | Russell King <> | 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/
| |