[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-wireless
Subject:    Re: [PATCH] compat: add pm_runtime_enabled() for kver < 2.6.38
From:       Ozan Çağlayan <ozan () pardus ! org ! tr>
Date:       2011-11-02 11:35:54
Message-ID: 4EB12B1A.90806 () pardus ! org ! tr
[Download RAW message or body]

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?

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic