linux/include/soc/tegra
Arnd Bergmann b1018eb75c soc: tegra: fix tegra_pmc_get_suspend_mode definition
When CONFIG_PM_SLEEP is disabled, the function is not defined,
causing a link failure:

arm-linux-gnueabi-ld: drivers/cpuidle/cpuidle-tegra.o: in function `tegra_cpuidle_probe':
cpuidle-tegra.c:(.text+0x24): undefined reference to `tegra_pmc_get_suspend_mode'

Change the #ifdef check according to the definition.

Fixes: 382ac8e22b ("cpuidle: tegra: Disable CC6 state if LP2 unavailable")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2020-04-17 17:20:44 +02:00
..
ahb.h
bpmp-abi.h
bpmp.h
common.h
cpuidle.h cpuidle: Refactor and move out NVIDIA Tegra20 driver into drivers/cpuidle 2020-03-13 11:31:58 +01:00
emc.h
flowctrl.h
fuse.h
irq.h ARM: tegra: Expose PM functions required for new cpuidle driver 2020-03-13 11:22:41 +01:00
ivc.h
mc.h
pm.h ARM: tegra: Rename some of the newly exposed PM functions 2020-03-13 11:23:08 +01:00
pmc.h soc: tegra: fix tegra_pmc_get_suspend_mode definition 2020-04-17 17:20:44 +02:00