Skip to content

Commit

Permalink
memory: tegra30: Fix build error w/o PM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hdoyu authored and gregkh committed Mar 15, 2013
1 parent aafae7e commit 9f7345b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/memory/tegra30-mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 9f7345b

Please sign in to comment.