X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap1%2Fboard-h3-mmc.c;h=5e8877ce35e09718f811578ffbcf93ee166bdf2c;hb=8b4c719edf9a42c10aee112655a9b6812885ac78;hp=0d8a3c195e2e01872efd43394e333dea2f7aa43d;hpb=09f38dc19deba9eae1d668dde8bdd2aaed3479ed;p=linux-2.6-omap-h63xx.git diff --git a/arch/arm/mach-omap1/board-h3-mmc.c b/arch/arm/mach-omap1/board-h3-mmc.c index 0d8a3c195e2..5e8877ce35e 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; }