Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f7345b7 authored by Hiroshi Doyu's avatar Hiroshi Doyu Committed by Greg Kroah-Hartman
Browse files

memory: tegra30: Fix build error w/o PM



Make this depend on CONFIG_PM.

Signed-off-by: default avatarHiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aafae7ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,