Skip to content

Commit

Permalink
amba: tegra-ahb: Fix warning w/o PM_SLEEP
Browse files Browse the repository at this point in the history
Fix build warning w/o PM_SLEEP.

Signed-off-by: Hiroshi Doyu <[email protected]>
Signed-off-by: Stephen Warren <[email protected]>
  • Loading branch information
hdoyu authored and nvswarren committed Nov 26, 2012
1 parent 6e25e1b commit f110174
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/amba/tegra-ahb.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn)
EXPORT_SYMBOL(tegra_ahb_enable_smmu);
#endif

#ifdef CONFIG_PM_SLEEP
static int tegra_ahb_suspend(struct device *dev)
{
int i;
Expand All @@ -175,6 +176,7 @@ static int tegra_ahb_resume(struct device *dev)
gizmo_writel(ahb, ahb->ctx[i], tegra_ahb_gizmo[i]);
return 0;
}
#endif

static UNIVERSAL_DEV_PM_OPS(tegra_ahb_pm,
tegra_ahb_suspend,
Expand Down

0 comments on commit f110174

Please sign in to comment.