diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2012-02-13 16:53:43 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-02-15 17:49:03 -0800 |
commit | 681c2688fc5a7001a2c0e568790e04be67552efd (patch) | |
tree | 512b242f804d0253dc731c1ae0bc33f7f96f52d4 | |
parent | 755a5eb9a528c01526b949d2c9b6d9c27feb68ec (diff) |
ARM: tegra: enterprise: Use machine_is_tegra_enterprise()
We don't need a static bool here, there's already a function that does
this.
Change-Id: Icacf9dc2fccf2fc780cd7d37121f3eeedbe7fb40
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83623
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-power.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c index 43bfe20c9818..69b24cc506b8 100644 --- a/arch/arm/mach-tegra/board-enterprise-power.c +++ b/arch/arm/mach-tegra/board-enterprise-power.c @@ -33,6 +33,8 @@ #include <linux/regulator/driver.h> #include <linux/regulator/gpio-regulator.h> +#include <asm/mach-types.h> + #include <mach/edp.h> #include <mach/iomap.h> #include <mach/irqs.h> @@ -51,8 +53,6 @@ #define PMC_DPD_PADS_ORIDE 0x01c #define PMC_DPD_PADS_ORIDE_BLINK (1 << 20) -static bool is_enterprise_machine = false; - /************************ TPS80031 based regulator ****************/ static struct regulator_consumer_supply tps80031_vio_supply[] = { REGULATOR_SUPPLY("vio_1v8", NULL), @@ -562,7 +562,7 @@ static int __init enterprise_regulators_fixed_gpio_init(void) { int ret; - if (!is_enterprise_machine) + if (!machine_is_tegra_enterprise()) return 0; ret = enterprise_fixed_regulator_init(); @@ -602,8 +602,6 @@ int __init enterprise_regulator_init(void) } i2c_register_board_info(4, enterprise_regulators, 1); - is_enterprise_machine = true; - return 0; } |