]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/omap/lcd_p2.c
use gpio_direction_output (OMAP tree only)
[linux-2.6-omap-h63xx.git] / drivers / video / omap / lcd_p2.c
index afd5e28468f461dbd2e21477b98deb44b377c05d..dd40fd7e6bac46dc4795a458538ab0359257e358 100644 (file)
@@ -165,8 +165,7 @@ static int p2_panel_enable(struct lcd_panel *panel)
        unsigned long value;
 
                /* thwack the reset line */
-       omap_set_gpio_direction(19, 0);
-       gpio_set_value(19, 0);
+       gpio_direction_output(19, 0);
        mdelay(2);
        gpio_set_value(19, 1);
 
@@ -257,8 +256,7 @@ static int p2_panel_enable(struct lcd_panel *panel)
        omap_uwire_data_transfer(LCD_UWIRE_CS, LCD_DISON, 9, 0,NULL,1);
 
        /* enable backlight */
-       omap_set_gpio_direction(134, 0);
-       gpio_set_value(134, 1);
+       gpio_direction_output(134, 1);
 
        return 0;
 }