diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2009-04-23 20:10:48 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-04-23 20:10:48 +0200 |
commit | bac5b29fb9582df22b4c1386162ac31b62edf121 (patch) | |
tree | d17fc27aaa42db899963396f84474253e0406370 /arch/arm/mach-omap1/board-h3-mmc.c | |
parent | ARM: OMAP1: Simplify board-h2 MMC setup (diff) | |
download | linux-bac5b29fb9582df22b4c1386162ac31b62edf121.tar.xz linux-bac5b29fb9582df22b4c1386162ac31b62edf121.zip |
ARM: OMAP1: Fix mmc_set_power GPIO usage
Simple simplification...
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-h3-mmc.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h3-mmc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/board-h3-mmc.c b/arch/arm/mach-omap1/board-h3-mmc.c index 0d8a3c195e2e..5e8877ce35e0 100644 --- a/arch/arm/mach-omap1/board-h3-mmc.c +++ b/arch/arm/mach-omap1/board-h3-mmc.c @@ -26,11 +26,7 @@ static int mmc_set_power(struct device *dev, int slot, int power_on, int vdd) { - if (power_on) - gpio_direction_output(H3_TPS_GPIO_MMC_PWR_EN, 1); - else - gpio_direction_output(H3_TPS_GPIO_MMC_PWR_EN, 0); - + gpio_set_value(H3_TPS_GPIO_MMC_PWR_EN, power_on); return 0; } |