From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Greg KH <greg@kroah.com>,
Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: [PATCH] Fix "echo -n 3 > /sys/.../power/state"
Date: Wed, 31 Dec 2003 22:42:55 +0000 [thread overview]
Message-ID: <20031231224255.A23414@flint.arm.linux.org.uk> (raw)
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
reply other threads:[~2003-12-31 22:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031231224255.A23414@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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