From: Franklin S Cooper Jr <fcooper@ti.com>
To: <mperttunen@nvidia.com>, <ulf.hansson@linaro.org>,
<rafael.j.wysocki@intel.com>, <linux-pm@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <ssantosh@kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Cc: Franklin S Cooper Jr <fcooper@ti.com>
Subject: [PATCH] PM / Domains: Fix compilation error for devices that don't enable PM_SLEEP
Date: Mon, 10 Jul 2017 16:14:48 -0500 [thread overview]
Message-ID: <20170710211448.11046-1-fcooper@ti.com> (raw)
Set pm_genpd_poweroff_noirq to NULL if CONFIG_PM_SLEEP isn't enabled.
This is the same approach done for other PM_SLEEP related functions.
Without this patch building the kernel with the keystone_defconfig
results in a compilation error.
Fixes: 10da65423fdb ("PM / Domains: Call driver's noirq callbacks")
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
drivers/base/power/domain.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 9649dce..c140a9d5 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1182,6 +1182,7 @@ EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweron);
#define pm_genpd_thaw_noirq NULL
#define pm_genpd_restore_noirq NULL
#define pm_genpd_complete NULL
+#define pm_genpd_poweroff_noirq NULL
#endif /* CONFIG_PM_SLEEP */
--
2.10.0
next reply other threads:[~2017-07-10 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-10 21:14 Franklin S Cooper Jr [this message]
2017-07-12 21:36 ` Rafael J. Wysocki
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=20170710211448.11046-1-fcooper@ti.com \
--to=fcooper@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mperttunen@nvidia.com \
--cc=rafael.j.wysocki@intel.com \
--cc=ssantosh@kernel.org \
--cc=ulf.hansson@linaro.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
all inboxes | Powered by JetHome®