Skip to contentSkip to conversation

memory: tegra30: Fix build error w/o PM

PATCH Applied Hiroshi Doyu 3 participants 3 messages Mar 14, 2013 – Mar 15, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory: tegra30: Fix build error w/o PM

Make this depend on CONFIG_PM.

---
 drivers/memory/tegra30-mc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/memory/tegra30-mc.c +2 -0
index 0b97598..f4ae074 100644
@@ -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,
Signature · 1 line
1.8.1.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Hiroshi Doyu

Make this depend on CONFIG_PM.

---
 drivers/memory/tegra30-mc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/memory/tegra30-mc.c +1 -0
index 0b97598..f4ae074 100644
@@ -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;

drivers/memory/tegra30-mc.c static int tegra30_mc_resume(struct device *dev) · line 298

Quoted 7 lines
drivers/memory/tegra30-mc.c +1 -0
@@ -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,