diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2013-03-14 05:12:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 14:10:49 -0400 |
commit | 9f7345b7a7cbf4c78a8161cba21de1772d5ad56e (patch) | |
tree | bd90e72e137cda865bb5a18e94638e7062108ee5 /drivers/memory/tegra30-mc.c | |
parent | aafae7ecd80181983403de13db0b4895acdc233d (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.c | 2 |
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 | ||
271 | static int tegra30_mc_suspend(struct device *dev) | 272 | static 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 | ||
295 | static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm, | 297 | static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm, |
296 | tegra30_mc_suspend, | 298 | tegra30_mc_suspend, |