]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-n800.c
use standard gpio get/set calls (OMAP tree only)
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-n800.c
index 2c64d2d47ed9fd70d159d6780eddc6ca79528641..74ffd4e2ed269620f8116a56da1b7e7dfaa2f7d7 100644 (file)
@@ -134,7 +134,7 @@ void __init nokia_n800_init_irq(void)
        }
 
        omap_set_gpio_direction(N800_STI_GPIO, 0);
-       omap_set_gpio_dataout(N800_STI_GPIO, 0);
+       gpio_set_value(N800_STI_GPIO, 0);
 #endif
 }
 
@@ -178,7 +178,7 @@ static void mipid_shutdown(struct mipid_platform_data *pdata)
 {
        if (pdata->nreset_gpio != -1) {
                pr_info("shutdown LCD\n");
-               omap_set_gpio_dataout(pdata->nreset_gpio, 0);
+               gpio_set_value(pdata->nreset_gpio, 0);
                msleep(120);
        }
 }
@@ -232,12 +232,12 @@ static void blizzard_power_up(struct device *dev)
        msleep(10);
 
        blizzard_enable_clocks(1);
-       omap_set_gpio_dataout(N800_BLIZZARD_POWERDOWN_GPIO, 1);
+       gpio_set_value(N800_BLIZZARD_POWERDOWN_GPIO, 1);
 }
 
 static void blizzard_power_down(struct device *dev)
 {
-       omap_set_gpio_dataout(N800_BLIZZARD_POWERDOWN_GPIO, 0);
+       gpio_set_value(N800_BLIZZARD_POWERDOWN_GPIO, 0);
        blizzard_enable_clocks(0);
 
        /* Vcore to 1.005V */
@@ -259,7 +259,7 @@ static void __init blizzard_dev_init(void)
        if (r < 0)
                return;
        omap_set_gpio_direction(N800_BLIZZARD_POWERDOWN_GPIO, 0);
-       omap_set_gpio_dataout(N800_BLIZZARD_POWERDOWN_GPIO, 1);
+       gpio_set_value(N800_BLIZZARD_POWERDOWN_GPIO, 1);
 
        blizzard_get_clocks();
        omapfb_set_ctrl_platform_data(&n800_blizzard_data);
@@ -341,7 +341,7 @@ static int __init tea5761_dev_init(void)
 
                omap_set_gpio_direction(enable_gpio, 0);
                udelay(50);
-               omap_set_gpio_dataout(enable_gpio, 1);
+               gpio_set_value(enable_gpio, 1);
        }
 
        return 0;