From: Hiroshi Doyu <hdoyu@nvidia.com>
To: <gregkh@linuxfoundation.org>
Cc: <swarren@nvidia.com>, <linux-kernel@vger.kernel.org>,
<linux-tegra@vger.kernel.org>, Hiroshi Doyu <hdoyu@nvidia.com>
Subject: [PATCH 1/1] memory: tegra30: Fix warning w/o PM_SLEEP
Date: Tue, 27 Nov 2012 08:48:35 +0200 [thread overview]
Message-ID: <1353998915-13263-1-git-send-email-hdoyu@nvidia.com> (raw)
In-Reply-To: <20121126234729.GA19416@kroah.com>
Fix build warning w/o PM_SLEEP.
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
---
drivers/memory/tegra30-mc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c
index 802b9ea..cf10b77 100644
--- a/drivers/memory/tegra30-mc.c
+++ b/drivers/memory/tegra30-mc.c
@@ -267,6 +267,7 @@ static const u32 tegra30_mc_ctx[] = {
MC_INTMASK,
};
+#ifdef CONFIG_PM_SLEEP
static int tegra30_mc_suspend(struct device *dev)
{
int i;
@@ -290,6 +291,7 @@ static int tegra30_mc_resume(struct device *dev)
mc_readl(mc, MC_TIMING_CONTROL);
return 0;
}
+#endif
static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm,
tegra30_mc_suspend,
--
1.7.9.5
prev parent reply other threads:[~2012-11-27 6:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-21 12:42 [PATCH 1/1] memory: tegra30: Fix warning w/o PM_SLEEP Hiroshi Doyu
2012-11-21 12:47 ` Hiroshi Doyu
2012-11-22 6:45 ` Stephen Warren
2012-11-26 19:33 ` Stephen Warren
2012-11-26 23:47 ` Greg Kroah-Hartman
2012-11-27 6:48 ` Hiroshi Doyu [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=1353998915-13263-1-git-send-email-hdoyu@nvidia.com \
--to=hdoyu@nvidia.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=swarren@nvidia.com \
/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