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)
committerThierry Reding <treding@nvidia.com>
Thu, 7 May 2020 20:03:10 +0000 (22:03 +0200)
commite4cc4f54be01b91b3e1b55430709d2a113f4e08f
treeb21e5869a96bd35a8e02be54e48f4cbe2fcdd665
parent09701895aa93df32cc708eab032ae8704feda333
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: Thierry Reding <treding@nvidia.com>
include/soc/tegra/pmc.h