diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2012-02-13 16:56:19 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 19:57:48 -0700 |
commit | 5c6fbc72eea86b80ece123b5306011730c583dd5 (patch) | |
tree | bfdb8109243997314da4fadd1e4b885ef3e1479d /arch/arm/mach-tegra/board-cardhu-power.c | |
parent | 98650cf833848aeabf895a7bb2f9ed7154f0f733 (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>
Rebase-Id: Rd8a1d48dd3fdcbeab86745d6d572fcac6f75fbb1
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-power.c')
-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); |