diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2012-02-13 16:58:03 -0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-02-15 17:46:05 -0800 |
commit | 755a5eb9a528c01526b949d2c9b6d9c27feb68ec (patch) | |
tree | b9675a3c6566a5e2756c857f88e71d64ba70dc9a /arch | |
parent | cf327ea89e3d0e8c7ce33259adc709f2d24b327c (diff) |
ARM: tegra: kai: Use machine_is_kai()
We don't need a static bool here, there's already a function that does
this.
Change-Id: I63e02db770d617c5566af5a3f153b34660b689b0
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83625
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-kai-power.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-kai-power.c b/arch/arm/mach-tegra/board-kai-power.c index 70db4427a094..a66c0fc0198a 100644 --- a/arch/arm/mach-tegra/board-kai-power.c +++ b/arch/arm/mach-tegra/board-kai-power.c @@ -46,8 +46,6 @@ #define PMC_CTRL 0x0 #define PMC_CTRL_INTR_LOW (1 << 17) -static bool is_kai_machine = false; - static struct regulator_consumer_supply max77663_sd0_supply[] = { REGULATOR_SUPPLY("vdd_cpu", NULL), }; @@ -560,7 +558,7 @@ static int __init kai_fixed_regulator_init(void) nfixreg_devs = ARRAY_SIZE(fixed_reg_devs_a01); } - if (!is_kai_machine) + if (!machine_is_kai()) return 0; for (i = 0; i < nfixreg_devs; ++i) { @@ -593,7 +591,6 @@ int __init kai_regulator_init(void) if (ret < 0) return ret; - is_kai_machine = true; return 0; } |