aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory/tegra30-mc.c
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2013-03-14 05:12:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 14:10:49 -0400
commit9f7345b7a7cbf4c78a8161cba21de1772d5ad56e (patch)
treebd90e72e137cda865bb5a18e94638e7062108ee5 /drivers/memory/tegra30-mc.c
parentaafae7ecd80181983403de13db0b4895acdc233d (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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/memory/tegra30-mc.c')
-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[] = {
268 MC_INTMASK, 268 MC_INTMASK,
269}; 269};
270 270
271#ifdef CONFIG_PM
271static int tegra30_mc_suspend(struct device *dev) 272static int tegra30_mc_suspend(struct device *dev)
272{ 273{
273 int i; 274 int i;
@@ -291,6 +292,7 @@ static int tegra30_mc_resume(struct device *dev)
291 mc_readl(mc, MC_TIMING_CONTROL); 292 mc_readl(mc, MC_TIMING_CONTROL);
292 return 0; 293 return 0;
293} 294}
295#endif
294 296
295static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm, 297static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm,
296 tegra30_mc_suspend, 298 tegra30_mc_suspend,