diff options
author | Ashwini Ghuge <aghuge@nvidia.com> | 2012-06-05 10:32:36 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-06-07 13:35:58 -0700 |
commit | ff445fc9ec43b59642c0dc81a66146cdbc3adbaf (patch) | |
tree | 3fc8e8bc6f36a20659a55f45a1cc4c29b6887dcd /arch/arm/mach-tegra/board-enterprise-power.c | |
parent | 08139881d07bec1f0e419c0e49f10b84250ebc21 (diff) |
ARM: tegra: enterprise: Remove tegra_gpio_enb/dis
Removing tegra_gpio_enable and disable calls
from board files as they are supported through
set direction calls in the driver
Bug 984439
Change-Id: I011fc1ec52b31b1b0602d577f02a6d20f37e402d
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/102773
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-power.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c index f32365d808a7..5e5d40728f15 100644 --- a/arch/arm/mach-tegra/board-enterprise-power.c +++ b/arch/arm/mach-tegra/board-enterprise-power.c @@ -309,7 +309,6 @@ int battery_charger_init(void *board_data) " charger fails\n", __func__); } gpio_direction_output(TEGRA_GPIO_PF6, 1); - tegra_gpio_enable(TEGRA_GPIO_PF6); return 0; } @@ -683,8 +682,6 @@ static int __init enterprise_fixed_regulator_init(void) for (i = 0; i < nfixreg_devs; ++i) { struct fixed_voltage_config *fixed_reg_pdata = fixed_regs_devices[i]->dev.platform_data; - if (fixed_reg_pdata->gpio < TEGRA_NR_GPIOS) - tegra_gpio_enable(fixed_reg_pdata->gpio); } return platform_add_devices(fixed_regs_devices, nfixreg_devs); } @@ -693,14 +690,6 @@ static int __init enterprise_gpio_regulator_init(void) { int i, j; - for (i = 0; i < ARRAY_SIZE(gpio_regs_devices); ++i) { - struct gpio_regulator_config *gpio_reg_pdata = - gpio_regs_devices[i]->dev.platform_data; - for (j = 0; j < gpio_reg_pdata->nr_gpios; ++j) { - if (gpio_reg_pdata->gpios[j].gpio < TEGRA_NR_GPIOS) - tegra_gpio_enable(gpio_reg_pdata->gpios[j].gpio); - } - } return platform_add_devices(gpio_regs_devices, ARRAY_SIZE(gpio_regs_devices)); } @@ -841,8 +830,6 @@ void __init enterprise_bpc_mgmt_init(void) { int int_gpio = TEGRA_GPIO_TO_IRQ(TEGRA_BPC_TRIGGER); - tegra_gpio_enable(TEGRA_BPC_TRIGGER); - #ifdef CONFIG_SMP cpumask_setall(&(bpc_mgmt_platform_data.affinity_mask)); irq_set_affinity_hint(int_gpio, |