All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] compat: add pm_runtime_enabled() for kver < 2.6.38
@ 2011-09-22  5:50 Ozan Çağlayan
  2011-11-02 11:35 ` Ozan Çağlayan
  0 siblings, 1 reply; 2+ messages in thread
From: Ozan Çağlayan @ 2011-09-22  5:50 UTC (permalink / raw)
  To: linux-wireless

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) */
 
-- 
1.7.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] compat: add pm_runtime_enabled() for kver < 2.6.38
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Ozan Çağlayan @ 2011-11-02 11:35 UTC (permalink / raw)
  To: linux-wireless

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?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-02 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.