From: Hiroshi Doyu Date: Wed, 21 Nov 2012 12:41:37 +0000 (+0200) Subject: amba: tegra-ahb: Fix warning w/o PM_SLEEP X-Git-Tag: accepted/tizen/common/20141203.182822~3137^2~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f110174910896b7a7d91c0c60d19136815f68c54;p=platform%2Fkernel%2Flinux-arm64.git amba: tegra-ahb: Fix warning w/o PM_SLEEP Fix build warning w/o PM_SLEEP. Signed-off-by: Hiroshi Doyu Signed-off-by: Stephen Warren --- diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index 0b6f0b2..ce8fdad 100644 --- a/drivers/amba/tegra-ahb.c +++ b/drivers/amba/tegra-ahb.c @@ -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; @@ -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,