ARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration
Laxman Dewangan [Tue, 31 Jul 2012 08:56:16 +0000 (13:56 +0530)]
The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: Id54a26bc2f3a968c60364b1d5109dd23ff724b94
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119606
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-cardhu.c

index 88df2e1..19cb2a3 100644 (file)
@@ -1061,10 +1061,6 @@ void hsic_platform_open(void)
                gpio_direction_output(hsic_enable_gpio, 0 /* deasserted */);
        if (!reset_gpio)
                gpio_direction_output(hsic_reset_gpio, 0 /* asserted */);
-       if (!enable_gpio)
-               tegra_gpio_enable(hsic_enable_gpio);
-       if (!reset_gpio)
-               tegra_gpio_enable(hsic_reset_gpio);
        /* keep hsic reset asserted for 1 ms */
        udelay(1000);
        /* enable (power on) hsic */