memory: tegra30: Fix build error w/o PM
Subsystems (2)
PATCH 1/1 memory: tegra30: Fix build error w/o PM
Make this depend on CONFIG_PM.
Signed-off-by Hiroshi Doyu <[email protected]>
--- drivers/memory/tegra30-mc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/memory/tegra30-mc.c +2 -0
@@ -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
Quoted 20 lines · Hiroshi Doyu
Make this depend on
CONFIG_PM.Signed-off-by Hiroshi Doyu <[email protected]>--- drivers/memory/tegra30-mc.c | 2 ++ 1 file changed, 2 insertions(+)drivers/memory/tegra30-mc.c +1
-0@@ -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,
Reviewed-by Thierry Reding <[email protected]>
Stephen Warren
AppliedQuoted 1 line · Hiroshi Doyu
Make this depend on
CONFIG_PM.
Applied to Tegra's for-3.10/fixes branch.