From: Andrew Morton <akpm@osdl.org>
To: Todd Poynor <tpoynor@mvista.com>
Cc: greg@kroah.com, mochel@digitalimplant.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Device runtime suspend/resume fixes
Date: Tue, 25 May 2004 22:22:58 -0700 [thread overview]
Message-ID: <20040525222258.5a4e9148.akpm@osdl.org> (raw)
In-Reply-To: <20040526001103.GA4845@slurryseal.ddns.mvista.com>
Todd Poynor <tpoynor@mvista.com> wrote:
>
> --- linux-2.6.6-orig/drivers/base/power/runtime.c 2004-05-10 11:22:58.000000000 -0700
> +++ linux-2.6.6-pm/drivers/base/power/runtime.c 2004-05-25 16:07:57.254838016 -0700
> @@ -12,9 +12,14 @@
>
> static void runtime_resume(struct device * dev)
> {
> + int error;
> +
> if (!dev->power.power_state)
> return;
> - resume_device(dev);
> + if (!(error = resume_device(dev)))
> + dev->power.power_state = 0;
> +
> + return error;
> }
err, this function needs a bit of work in the return value department...
prev parent reply other threads:[~2004-05-26 5:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-26 0:11 Todd Poynor
2004-05-26 5:22 ` Andrew Morton [this message]
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=20040525222258.5a4e9148.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@digitalimplant.org \
--cc=tpoynor@mvista.com \
/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
all inboxes | Powered by JetHome®