]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-n800-mmc.c
use standard gpio get/set calls (OMAP tree only)
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-n800-mmc.c
index 8b78180242d70421e5bd7d91c96cbf42e87f7ad0..471d3158fe31e2560734583b48829063626e43a0 100644 (file)
@@ -42,10 +42,7 @@ static int n800_mmc_switch_slot(struct device *dev, int slot)
 #ifdef CONFIG_MMC_DEBUG
        dev_dbg(dev, "Choose slot %d\n", slot + 1);
 #endif
-       if (slot == 0)
-               omap_set_gpio_dataout(slot_switch_gpio, 0);
-       else
-               omap_set_gpio_dataout(slot_switch_gpio, 1);
+       gpio_set_value(slot_switch_gpio, slot);
        return 0;
 }
 
@@ -125,14 +122,14 @@ static void nokia_mmc_set_power_internal(struct device *dev,
                power_on ? "on" : "off");
 
        if (power_on) {
-               omap_set_gpio_dataout(n810_slot2_pw_vddf, 1);
+               gpio_set_value(n810_slot2_pw_vddf, 1);
                udelay(30);
-               omap_set_gpio_dataout(n810_slot2_pw_vdd, 1);
+               gpio_set_value(n810_slot2_pw_vdd, 1);
                udelay(100);
        } else {
-               omap_set_gpio_dataout(n810_slot2_pw_vdd, 0);
+               gpio_set_value(n810_slot2_pw_vdd, 0);
                msleep(50);
-               omap_set_gpio_dataout(n810_slot2_pw_vddf, 0);
+               gpio_set_value(n810_slot2_pw_vddf, 0);
                msleep(50);
        }
 }
@@ -349,18 +346,18 @@ void __init n800_mmc_init(void)
 
        if (omap_request_gpio(slot_switch_gpio) < 0)
                BUG();
-       omap_set_gpio_dataout(slot_switch_gpio, 0);
+       gpio_set_value(slot_switch_gpio, 0);
        omap_set_gpio_direction(slot_switch_gpio, 0);
 
        if (machine_is_nokia_n810()) {
                if (omap_request_gpio(n810_slot2_pw_vddf) < 0)
                        BUG();
-               omap_set_gpio_dataout(n810_slot2_pw_vddf, 0);
+               gpio_set_value(n810_slot2_pw_vddf, 0);
                omap_set_gpio_direction(n810_slot2_pw_vddf, 0);
 
                if (omap_request_gpio(n810_slot2_pw_vdd) < 0)
                        BUG();
-               omap_set_gpio_dataout(n810_slot2_pw_vdd, 0);
+               gpio_set_value(n810_slot2_pw_vdd, 0);
                omap_set_gpio_direction(n810_slot2_pw_vdd, 0);
        }