summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler-sensors.c
diff options
context:
space:
mode:
authorSanjay Singh Rawat <srawat@nvidia.com>2012-07-03 09:33:06 +0530
committerVarun Colbert <vcolbert@nvidia.com>2012-07-06 13:29:00 -0700
commit741f1049886e65ff9af5e1c3d30380ae3ca112c1 (patch)
tree75f88f91a1787abe157236be6d47e8e220d91d18 /arch/arm/mach-tegra/board-whistler-sensors.c
parent23c4044683497da7c0e44166fc4bab856a438aac (diff)
ARM: tegra: whistler: get rid of gpio enable/disable calls
Gpio direction setting and freeing functions will do the needful now. Bug 984440 Change-Id: I32b1b0d67d2ebe1aa8b766b633fe675543714812 Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com> Reviewed-on: http://git-master/r/104938 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-sensors.c')
-rw-r--r--arch/arm/mach-tegra/board-whistler-sensors.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-sensors.c b/arch/arm/mach-tegra/board-whistler-sensors.c
index 95bb2f1dd405..9783347cd631 100644
--- a/arch/arm/mach-tegra/board-whistler-sensors.c
+++ b/arch/arm/mach-tegra/board-whistler-sensors.c
@@ -70,37 +70,30 @@ static struct regulator *reg_vddio_vi; /* LDO18 */
static int whistler_camera_init(void)
{
- tegra_gpio_enable(CAMERA1_PWDN_GPIO);
gpio_request(CAMERA1_PWDN_GPIO, "camera1_powerdown");
gpio_direction_output(CAMERA1_PWDN_GPIO, 0);
gpio_export(CAMERA1_PWDN_GPIO, false);
- tegra_gpio_enable(CAMERA1_RESET_GPIO);
gpio_request(CAMERA1_RESET_GPIO, "camera1_reset");
gpio_direction_output(CAMERA1_RESET_GPIO, 0);
gpio_export(CAMERA1_RESET_GPIO, false);
- tegra_gpio_enable(CAMERA2_PWDN_GPIO);
gpio_request(CAMERA2_PWDN_GPIO, "camera2_powerdown");
gpio_direction_output(CAMERA2_PWDN_GPIO, 0);
gpio_export(CAMERA2_PWDN_GPIO, false);
- tegra_gpio_enable(CAMERA2_RESET_GPIO);
gpio_request(CAMERA2_RESET_GPIO, "camera2_reset");
gpio_direction_output(CAMERA2_RESET_GPIO, 0);
gpio_export(CAMERA2_RESET_GPIO, false);
- tegra_gpio_enable(CAMERA_AF_PD_GPIO);
gpio_request(CAMERA_AF_PD_GPIO, "camera_autofocus");
gpio_direction_output(CAMERA_AF_PD_GPIO, 0);
gpio_export(CAMERA_AF_PD_GPIO, false);
- tegra_gpio_enable(CAMERA_FLASH_EN1_GPIO);
gpio_request(CAMERA_FLASH_EN1_GPIO, "camera_flash_en1");
gpio_direction_output(CAMERA_FLASH_EN1_GPIO, 0);
gpio_export(CAMERA_FLASH_EN1_GPIO, false);
- tegra_gpio_enable(CAMERA_FLASH_EN2_GPIO);
gpio_request(CAMERA_FLASH_EN2_GPIO, "camera_flash_en2");
gpio_direction_output(CAMERA_FLASH_EN2_GPIO, 0);
gpio_export(CAMERA_FLASH_EN2_GPIO, false);
@@ -293,14 +286,12 @@ static struct i2c_board_info whistler_i2c3_board_info[] = {
static void whistler_adxl34x_init(void)
{
- tegra_gpio_enable(ADXL34X_IRQ_GPIO);
gpio_request(ADXL34X_IRQ_GPIO, "adxl34x");
gpio_direction_input(ADXL34X_IRQ_GPIO);
}
static void whistler_isl29018_init(void)
{
- tegra_gpio_enable(ISL29018_IRQ_GPIO);
gpio_request(ISL29018_IRQ_GPIO, "isl29018");
gpio_direction_input(ISL29018_IRQ_GPIO);
}
@@ -316,11 +307,6 @@ static struct i2c_board_info whistler_i2c1_board_info[] = {
},
};
-static void whistler_adt7461_init(void)
-{
- tegra_gpio_enable(ADT7461_IRQ_GPIO);
-}
-
static struct adt7461_platform_data whistler_adt7461_pdata = {
.supported_hwrev = true,
.ext_range = false,
@@ -355,8 +341,6 @@ int __init whistler_sensors_init(void)
whistler_isl29018_init();
- whistler_adt7461_init();
-
i2c_register_board_info(0, whistler_i2c1_board_info,
ARRAY_SIZE(whistler_i2c1_board_info));