soc/tegra: pm: Make stubs usable for compile testing
authorDmitry Osipenko <digetx@gmail.com>
Sun, 12 Sep 2021 20:29:04 +0000 (23:29 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Oct 2021 19:27:40 +0000 (21:27 +0200)
The PM stubs need to depend on ARCH_TEGRA in order to be usable for
compile-testing of tegra-cpuidle driver. Add the dependency.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/soc/tegra/pm.h

index 433878927026335d63c43497d39b7b85bb94de49..ce4d0b1bd0d631506d87738172df392cc7b1e74c 100644 (file)
@@ -17,7 +17,7 @@ enum tegra_suspend_mode {
        TEGRA_SUSPEND_NOT_READY,
 };
 
-#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM)
+#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA)
 enum tegra_suspend_mode
 tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode);