]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-n800-usb.c
use standard gpio get/set calls (OMAP tree only)
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-n800-usb.c
index fc128f245ab8eb2da3dd30d256f8cab9187227d1..36bb6a8804168f355d9525b72df010e5b42add66 100644 (file)
@@ -99,12 +99,12 @@ static int tusb_set_power(int state)
        int i, retval = 0;
 
        if (state) {
-               omap_set_gpio_dataout(GPIO_TUSB_ENABLE, 1);
+               gpio_set_value(GPIO_TUSB_ENABLE, 1);
                msleep(1);
 
                /* Wait until TUSB6010 pulls INT pin down */
                i = 100;
-               while (i && omap_get_gpio_datain(GPIO_TUSB_INT)) {
+               while (i && gpio_get_value(GPIO_TUSB_INT)) {
                        msleep(1);
                        i--;
                }
@@ -114,7 +114,7 @@ static int tusb_set_power(int state)
                        retval = -ENODEV;
                }
        } else {
-               omap_set_gpio_dataout(GPIO_TUSB_ENABLE, 0);
+               gpio_set_value(GPIO_TUSB_ENABLE, 0);
                msleep(10);
        }