diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-04-08 21:01:15 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-05-07 22:03:10 +0200 |
commit | e4cc4f54be01b91b3e1b55430709d2a113f4e08f (patch) | |
tree | b21e5869a96bd35a8e02be54e48f4cbe2fcdd665 /drivers/soc/tegra | |
parent | 09701895aa93df32cc708eab032ae8704feda333 (diff) |
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>
Diffstat (limited to 'drivers/soc/tegra')
0 files changed, 0 insertions, 0 deletions