From: "Ozan Çağlayan" <ozan@pardus.org.tr>
To: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] compat: add pm_runtime_enabled() for kver < 2.6.38
Date: Wed, 02 Nov 2011 13:35:54 +0200 [thread overview]
Message-ID: <4EB12B1A.90806@pardus.org.tr> (raw)
In-Reply-To: <1316670659-4785-1-git-send-email-ozan@pardus.org.tr>
22-09-2011 08:50 tarihinde, Ozan Çağlayan yazdı:
> Without this, the build of wl12xx/sdio.c fails.
>
> Signed-off-by: Ozan Çağlayan<ozan@pardus.org.tr>
> ---
> include/linux/compat-2.6.38.h | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/compat-2.6.38.h b/include/linux/compat-2.6.38.h
> index 1f9ab52..d6da16e 100644
> --- a/include/linux/compat-2.6.38.h
> +++ b/include/linux/compat-2.6.38.h
> @@ -11,6 +11,10 @@
> /* rename member in struct mmc_host in include/linux/mmc/host.h */
> #define max_segs max_hw_segs
>
> +static inline bool pm_runtime_enabled(struct device *dev)
> +{
> + return !dev->power.disable_depth;
> +}
>
> /* Exponentially weighted moving average (EWMA) */
>
Any comments?
prev parent reply other threads:[~2011-11-02 11:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-22 5:50 [PATCH] compat: add pm_runtime_enabled() for kver < 2.6.38 Ozan Çağlayan
2011-11-02 11:35 ` Ozan Çağlayan [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=4EB12B1A.90806@pardus.org.tr \
--to=ozan@pardus.org.tr \
--cc=linux-wireless@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;
as well as URLs for NNTP newsgroup(s).