提交 9f7345b7 编写于 作者: H Hiroshi Doyu 提交者: Greg Kroah-Hartman

memory: tegra30: Fix build error w/o PM

Make this depend on CONFIG_PM.
Signed-off-by: NHiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: NThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 aafae7ec
...@@ -268,6 +268,7 @@ static const u32 tegra30_mc_ctx[] = { ...@@ -268,6 +268,7 @@ static const u32 tegra30_mc_ctx[] = {
MC_INTMASK, MC_INTMASK,
}; };
#ifdef CONFIG_PM
static int tegra30_mc_suspend(struct device *dev) static int tegra30_mc_suspend(struct device *dev)
{ {
int i; int i;
...@@ -291,6 +292,7 @@ static int tegra30_mc_resume(struct device *dev) ...@@ -291,6 +292,7 @@ static int tegra30_mc_resume(struct device *dev)
mc_readl(mc, MC_TIMING_CONTROL); mc_readl(mc, MC_TIMING_CONTROL);
return 0; return 0;
} }
#endif
static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm, static UNIVERSAL_DEV_PM_OPS(tegra30_mc_pm,
tegra30_mc_suspend, tegra30_mc_suspend,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册