From 92930e33935f5fb6aa4c8218609ffb60d92acfc7 Mon Sep 17 00:00:00 2001 From: Jarkko Nikula Date: Fri, 31 Oct 2008 14:18:51 +0200 Subject: [PATCH] ARM: OMAP: Switch OMAP LCD panels to use gpio_request/free calls Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- drivers/video/omap/lcd_2430sdp.c | 6 +++--- drivers/video/omap/lcd_omap2evm.c | 14 +++++++------- drivers/video/omap/lcd_omap3beagle.c | 4 ++-- drivers/video/omap/lcd_omap3evm.c | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/video/omap/lcd_2430sdp.c b/drivers/video/omap/lcd_2430sdp.c index 99cd2dba9c8..a22b452c4d5 100644 --- a/drivers/video/omap/lcd_2430sdp.c +++ b/drivers/video/omap/lcd_2430sdp.c @@ -24,9 +24,9 @@ #include #include #include +#include #include -#include #include #include #include @@ -65,8 +65,8 @@ static int sdp2430_panel_init(struct lcd_panel *panel, backlight_gpio = SDP2430_LCD_PANEL_BACKLIGHT_GPIO; } - omap_request_gpio(enable_gpio); /* LCD panel */ - omap_request_gpio(backlight_gpio); /* LCD backlight */ + gpio_request(enable_gpio, "LCD enable"); /* LCD panel */ + gpio_request(backlight_gpio, "LCD bl"); /* LCD backlight */ gpio_direction_output(enable_gpio, 0); gpio_direction_output(backlight_gpio, 0); diff --git a/drivers/video/omap/lcd_omap2evm.c b/drivers/video/omap/lcd_omap2evm.c index 424fbae953c..2fc46c2bd77 100644 --- a/drivers/video/omap/lcd_omap2evm.c +++ b/drivers/video/omap/lcd_omap2evm.c @@ -23,9 +23,9 @@ #include #include +#include #include -#include #include #include #include @@ -50,12 +50,12 @@ static unsigned int bklight_level; static int omap2evm_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev) { - omap_request_gpio(LCD_PANEL_ENABLE_GPIO); - omap_request_gpio(LCD_PANEL_LR); - omap_request_gpio(LCD_PANEL_UD); - omap_request_gpio(LCD_PANEL_INI); - omap_request_gpio(LCD_PANEL_QVGA); - omap_request_gpio(LCD_PANEL_RESB); + gpio_request(LCD_PANEL_ENABLE_GPIO, "LCD enable"); + gpio_request(LCD_PANEL_LR, "LCD lr"); + gpio_request(LCD_PANEL_UD, "LCD ud"); + gpio_request(LCD_PANEL_INI, "LCD ini"); + gpio_request(LCD_PANEL_QVGA, "LCD qvga"); + gpio_request(LCD_PANEL_RESB, "LCD resb"); gpio_direction_output(LCD_PANEL_ENABLE_GPIO, 1); gpio_direction_output(LCD_PANEL_RESB, 1); diff --git a/drivers/video/omap/lcd_omap3beagle.c b/drivers/video/omap/lcd_omap3beagle.c index 0c779e40d5e..eae43e4c265 100644 --- a/drivers/video/omap/lcd_omap3beagle.c +++ b/drivers/video/omap/lcd_omap3beagle.c @@ -22,9 +22,9 @@ #include #include +#include #include -#include #include #include #include @@ -38,7 +38,7 @@ static int omap3beagle_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev) { - omap_request_gpio(LCD_PANEL_ENABLE_GPIO); + gpio_request(LCD_PANEL_ENABLE_GPIO, "LCD enable"); return 0; } diff --git a/drivers/video/omap/lcd_omap3evm.c b/drivers/video/omap/lcd_omap3evm.c index 90aa015499e..1c3d814f9ff 100644 --- a/drivers/video/omap/lcd_omap3evm.c +++ b/drivers/video/omap/lcd_omap3evm.c @@ -22,9 +22,9 @@ #include #include +#include #include -#include #include #include #include @@ -54,11 +54,11 @@ static unsigned int bklight_level; static int omap3evm_panel_init(struct lcd_panel *panel, struct omapfb_device *fbdev) { - omap_request_gpio(LCD_PANEL_LR); - omap_request_gpio(LCD_PANEL_UD); - omap_request_gpio(LCD_PANEL_INI); - omap_request_gpio(LCD_PANEL_RESB); - omap_request_gpio(LCD_PANEL_QVGA); + gpio_request(LCD_PANEL_LR, "LCD lr"); + gpio_request(LCD_PANEL_UD, "LCD ud"); + gpio_request(LCD_PANEL_INI, "LCD ini"); + gpio_request(LCD_PANEL_RESB, "LCD resb"); + gpio_request(LCD_PANEL_QVGA, "LCD qvga"); gpio_direction_output(LCD_PANEL_RESB, 1); gpio_direction_output(LCD_PANEL_INI, 1); -- 2.41.1