diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2012-02-13 16:56:19 -0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-02-15 17:38:39 -0800 |
commit | cf327ea89e3d0e8c7ce33259adc709f2d24b327c (patch) | |
tree | 91d4520f4c9a82ae5c0f7684d509e4e5f07dbb60 | |
parent | b778dd8367a9c038f5f91ecdcff4dcdb2068252f (diff) |
ARM: tegra: cardhu: Use machine_is_cardhu()
We don't need a static bool here, there's already a function that does
this.
Change-Id: I7e5f13fc706b44f87ee7032860b31a8d8f622f21
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83624
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-power.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-power.c b/arch/arm/mach-tegra/board-cardhu-power.c index 2be32f781710..b3d9e2294610 100644 --- a/arch/arm/mach-tegra/board-cardhu-power.c +++ b/arch/arm/mach-tegra/board-cardhu-power.c @@ -49,8 +49,6 @@ #define PMC_CTRL 0x0 #define PMC_CTRL_INTR_LOW (1 << 17) -static bool is_cardhu_machine = false; - static struct regulator_consumer_supply tps6591x_vdd1_supply_skubit0_0[] = { REGULATOR_SUPPLY("vdd_core", NULL), REGULATOR_SUPPLY("en_vddio_ddr_1v2", NULL), @@ -448,7 +446,6 @@ int __init cardhu_regulator_init(void) pr_info("Registering the device TPS62361\n"); i2c_register_board_info(4, tps62361_boardinfo, 1); } - is_cardhu_machine = true; return 0; } @@ -1023,7 +1020,7 @@ int __init cardhu_fixed_regulator_init(void) struct platform_device **fixed_reg_devs; int nfixreg_devs; - if (!is_cardhu_machine) + if (!machine_is_cardhu()) return 0; tegra_get_board_info(&board_info); |