From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Amitkumar Karwar <akarwar-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Cc: linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Nishant Sarmukadam
<nishants-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
wnhuang-F7+t8E8rja9Wk0Htik3J/w@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Xinming Hu <huxm-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [PATCH v3 3/3] mwifiex: parse host wakeup configuration from device tree
Date: Mon, 08 Feb 2016 13:12:31 +0100 [thread overview]
Message-ID: <2675319.xbIeWCdnho@wuerfel> (raw)
In-Reply-To: <1454926528-17480-3-git-send-email-akarwar-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
On Monday 08 February 2016 02:15:28 Amitkumar Karwar wrote:
> @@ -30,6 +84,44 @@ static int mwifiex_plt_remove(struct platform_device *pdev)
> return 0;
> }
>
> +#ifdef CONFIG_PM_SLEEP
> +static int mwifiex_plt_suspend(struct device *dev)
> +{
> + struct mwifiex_wake_dev *ctx = dev_get_drvdata(dev);
> + int ret;
> +
...
> +static const struct dev_pm_ops mwifiex_plt_pm_ops = {
> + SET_SYSTEM_SLEEP_PM_OPS(mwifiex_plt_suspend, mwifiex_plt_resume)
> +};
> +#endif /* CONFIG_PM_SLEEP */
> +
> static const struct of_device_id mwifiex_dt_match[] = {
> {
> .compatible = "marvell,mwifiex",
> @@ -45,6 +137,9 @@ static struct platform_driver mwifiex_platform_driver = {
> .driver = {
> .name = "mwifiex_plt",
> .of_match_table = mwifiex_dt_match,
> +#ifdef CONFIG_PM_SLEEP
> + .pm = &mwifiex_plt_pm_ops,
> +#endif
> }
> };
Just remove the #ifdef here, and mark the functions as __maybe_unused.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-02-08 12:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 10:15 [PATCH v3 1/3] mwifiex: register platform specific driver Amitkumar Karwar
[not found] ` <1454926528-17480-1-git-send-email-akarwar-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2016-02-08 10:15 ` [PATCH v3 2/3] mwifiex: parse chip specific gpio from device tree Amitkumar Karwar
[not found] ` <1454926528-17480-2-git-send-email-akarwar-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2016-02-08 12:11 ` Arnd Bergmann
2016-02-08 21:47 ` Rob Herring
2016-02-09 14:03 ` Amitkumar Karwar
[not found] ` <1be9cc31466a49d2b6673e09795c9497-uAViF8V/CPOq90oVIqnETxL4W9x8LtSr@public.gmane.org>
2016-02-09 14:19 ` Arnd Bergmann
2016-02-09 14:26 ` Amitkumar Karwar
2016-02-08 10:15 ` [PATCH v3 3/3] mwifiex: parse host wakeup configuration " Amitkumar Karwar
[not found] ` <1454926528-17480-3-git-send-email-akarwar-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
2016-02-08 12:12 ` Arnd Bergmann [this message]
2016-02-09 13:46 ` Amitkumar Karwar
2016-02-08 12:09 ` [PATCH v3 1/3] mwifiex: register platform specific driver Arnd Bergmann
2016-02-09 13:44 ` Amitkumar Karwar
[not found] ` <5ef981436ee64f67beef7ca1e2470c69-uAViF8V/CPOq90oVIqnETxL4W9x8LtSr@public.gmane.org>
2016-02-09 14:18 ` Arnd Bergmann
2016-02-09 14:27 ` Amitkumar Karwar
2016-02-08 21:56 ` Rob Herring
2016-02-09 14:00 ` Amitkumar Karwar
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=2675319.xbIeWCdnho@wuerfel \
--to=arnd-r2ngtmty4d4@public.gmane.org \
--cc=akarwar-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=huxm-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nishants-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
--cc=wnhuang-F7+t8E8rja9Wk0Htik3J/w@public.gmane.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