Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hdoyu@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Hiroshi Doyu and committed by
Russell King
2c36af0e f7db706b

+1 -1
+1 -1
drivers/amba/tegra-ahb.c
··· 158 158 EXPORT_SYMBOL(tegra_ahb_enable_smmu); 159 159 #endif 160 160 161 - #ifdef CONFIG_PM_SLEEP 161 + #ifdef CONFIG_PM 162 162 static int tegra_ahb_suspend(struct device *dev) 163 163 { 164 164 int i;