diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-04-08 22:01:15 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-04-17 18:20:44 +0300 |
commit | b1018eb75c98a2703a38f6d85ea6bd3bcc5f5238 (patch) | |
tree | 3e06010fc14eba4f50d824cb999188f4d94e95c5 /drivers/soc/imx/soc-imx8m.c | |
parent | 5c4a5999b2450a96c9adb6196f9fc6772a0d07fd (diff) | |
download | linux-b1018eb75c98a2703a38f6d85ea6bd3bcc5f5238.tar.xz |
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>
Diffstat (limited to 'drivers/soc/imx/soc-imx8m.c')
0 files changed, 0 insertions, 0 deletions