soc: tegra: fix tegra_pmc_get_suspend_mode definition
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Apr 2020 19:01:15 +0000 (21:01 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 17 Apr 2020 15:20:44 +0000 (17:20 +0200)
commitb1018eb75c98a2703a38f6d85ea6bd3bcc5f5238
tree3e06010fc14eba4f50d824cb999188f4d94e95c5
parent5c4a5999b2450a96c9adb6196f9fc6772a0d07fd
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: 382ac8e22b90 ("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>
include/soc/tegra/pmc.h