From: Hiroshi Doyu Date: Fri, 15 Mar 2013 06:54:11 +0000 (+0100) Subject: ARM: 7675/1: amba: tegra-ahb: Fix build error w/ PM_SLEEP w/o PM_RUNTIME X-Git-Tag: v3.9-rc4~36^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2c36af0e559c0a0674ad846527116df41aa5f612;p=~emulex%2Finfiniband.git ARM: 7675/1: amba: tegra-ahb: Fix build error w/ PM_SLEEP w/o PM_RUNTIME Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where each PM features are being enabled one-by-one during its depelopment. Signed-off-by: Hiroshi Doyu Signed-off-by: Russell King --- diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index 093c4355496..1f44e56cc65 100644 --- a/drivers/amba/tegra-ahb.c +++ b/drivers/amba/tegra-ahb.c @@ -158,7 +158,7 @@ int tegra_ahb_enable_smmu(struct device_node *dn) EXPORT_SYMBOL(tegra_ahb_enable_smmu); #endif -#ifdef CONFIG_PM_SLEEP +#ifdef CONFIG_PM static int tegra_ahb_suspend(struct device *dev) { int i;