]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap1/board-h3-mmc.c
Initial import of extra code in arch/arm/*omap* into omap-pool branch
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap1 / board-h3-mmc.c
index fdfe793d56f2893e61d025ab63113846dc3ef51c..5e8877ce35e09718f811578ffbcf93ee166bdf2c 100644 (file)
 #include <mach/mmc.h>
 #include <mach/gpio.h>
 
+#include "board-h3.h"
+
 #if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)
 
 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;
 }