aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Doyu2013-03-14 11:12:10 +0200
committerStephen Warren2013-03-15 13:22:13 -0600
commitd4cba7fa7e2b25b463e51006bdeab7110f96ec33 (patch)
treebb7272a299fe560073ccf652ba06f8df0fd5dbf6
parent84b808da2dea7020211f1d73d015ff6c3ac207c4 (diff)
memory: tegra30: Fix build error w/o PM
Make this depend on CONFIG_PM. Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--drivers/memory/tegra30-mc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c
index 0b975986777d..f4ae074badc3 100644
--- a/drivers/memory/tegra30-mc.c
+++ b/drivers/memory/tegra30-mc.c
@@ -268,6 +268,7 @@ static const u32 tegra30_mc_ctx[] = {
MC_INTMASK,
};
+#ifdef CONFIG_PM
static int tegra30_mc_suspend(struct device *dev)
{
int i;
@@ -291,6 +292,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,