diff options
author | Joseph Lo <josephl@nvidia.com> | 2013-06-04 18:47:34 +0800 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-06-05 11:44:54 -0600 |
commit | b046a65f230f35edd8e537d97ca68b45e8c36240 (patch) | |
tree | abbbdb258f40a5611283fd1f6338b7d89b8415d6 /arch/arm/mach-tegra/cpuidle.c | |
parent | bf91add4a0feb7a8624a1f6b3fd4d6dbe9dce1bc (diff) | |
download | linux-b046a65f230f35edd8e537d97ca68b45e8c36240.tar.bz2 |
ARM: tegra: cpuidle: using IS_ENABLED for multi SoCs management in init func
Clean up the Tegra CPUidle init function by using IS_ENABLED for multi
SoCs management in the init function.
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle.c')
-rw-r--r-- | arch/arm/mach-tegra/cpuidle.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/cpuidle.c b/arch/arm/mach-tegra/cpuidle.c index 4a7a78804118..e85973cef037 100644 --- a/arch/arm/mach-tegra/cpuidle.c +++ b/arch/arm/mach-tegra/cpuidle.c @@ -31,15 +31,16 @@ void __init tegra_cpuidle_init(void) { switch (tegra_chip_id) { case TEGRA20: - tegra20_cpuidle_init(); + if (IS_ENABLED(CONFIG_ARCH_TEGRA_2x_SOC)) + tegra20_cpuidle_init(); break; case TEGRA30: - tegra30_cpuidle_init(); + if (IS_ENABLED(CONFIG_ARCH_TEGRA_3x_SOC)) + tegra30_cpuidle_init(); break; case TEGRA114: - tegra114_cpuidle_init(); - break; - default: + if (IS_ENABLED(CONFIG_ARCH_TEGRA_114_SOC)) + tegra114_cpuidle_init(); break; } } |