Commit 92930e33 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren

ARM: OMAP: Switch OMAP LCD panels to use gpio_request/free calls

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent fe9c7ac1
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/i2c/twl4030.h> #include <linux/i2c/twl4030.h>
#include <mach/gpio.h>
#include <mach/mux.h> #include <mach/mux.h>
#include <mach/omapfb.h> #include <mach/omapfb.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -65,8 +65,8 @@ static int sdp2430_panel_init(struct lcd_panel *panel, ...@@ -65,8 +65,8 @@ static int sdp2430_panel_init(struct lcd_panel *panel,
backlight_gpio = SDP2430_LCD_PANEL_BACKLIGHT_GPIO; backlight_gpio = SDP2430_LCD_PANEL_BACKLIGHT_GPIO;
} }
omap_request_gpio(enable_gpio); /* LCD panel */ gpio_request(enable_gpio, "LCD enable"); /* LCD panel */
omap_request_gpio(backlight_gpio); /* LCD backlight */ gpio_request(backlight_gpio, "LCD bl"); /* LCD backlight */
gpio_direction_output(enable_gpio, 0); gpio_direction_output(enable_gpio, 0);
gpio_direction_output(backlight_gpio, 0); gpio_direction_output(backlight_gpio, 0);
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/i2c/twl4030.h> #include <linux/i2c/twl4030.h>
#include <mach/gpio.h>
#include <mach/mux.h> #include <mach/mux.h>
#include <mach/omapfb.h> #include <mach/omapfb.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -50,12 +50,12 @@ static unsigned int bklight_level; ...@@ -50,12 +50,12 @@ static unsigned int bklight_level;
static int omap2evm_panel_init(struct lcd_panel *panel, static int omap2evm_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev) struct omapfb_device *fbdev)
{ {
omap_request_gpio(LCD_PANEL_ENABLE_GPIO); gpio_request(LCD_PANEL_ENABLE_GPIO, "LCD enable");
omap_request_gpio(LCD_PANEL_LR); gpio_request(LCD_PANEL_LR, "LCD lr");
omap_request_gpio(LCD_PANEL_UD); gpio_request(LCD_PANEL_UD, "LCD ud");
omap_request_gpio(LCD_PANEL_INI); gpio_request(LCD_PANEL_INI, "LCD ini");
omap_request_gpio(LCD_PANEL_QVGA); gpio_request(LCD_PANEL_QVGA, "LCD qvga");
omap_request_gpio(LCD_PANEL_RESB); gpio_request(LCD_PANEL_RESB, "LCD resb");
gpio_direction_output(LCD_PANEL_ENABLE_GPIO, 1); gpio_direction_output(LCD_PANEL_ENABLE_GPIO, 1);
gpio_direction_output(LCD_PANEL_RESB, 1); gpio_direction_output(LCD_PANEL_RESB, 1);
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/i2c/twl4030.h> #include <linux/i2c/twl4030.h>
#include <mach/gpio.h>
#include <mach/mux.h> #include <mach/mux.h>
#include <mach/omapfb.h> #include <mach/omapfb.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
static int omap3beagle_panel_init(struct lcd_panel *panel, static int omap3beagle_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev) struct omapfb_device *fbdev)
{ {
omap_request_gpio(LCD_PANEL_ENABLE_GPIO); gpio_request(LCD_PANEL_ENABLE_GPIO, "LCD enable");
return 0; return 0;
} }
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/i2c/twl4030.h> #include <linux/i2c/twl4030.h>
#include <mach/gpio.h>
#include <mach/mux.h> #include <mach/mux.h>
#include <mach/omapfb.h> #include <mach/omapfb.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -54,11 +54,11 @@ static unsigned int bklight_level; ...@@ -54,11 +54,11 @@ static unsigned int bklight_level;
static int omap3evm_panel_init(struct lcd_panel *panel, static int omap3evm_panel_init(struct lcd_panel *panel,
struct omapfb_device *fbdev) struct omapfb_device *fbdev)
{ {
omap_request_gpio(LCD_PANEL_LR); gpio_request(LCD_PANEL_LR, "LCD lr");
omap_request_gpio(LCD_PANEL_UD); gpio_request(LCD_PANEL_UD, "LCD ud");
omap_request_gpio(LCD_PANEL_INI); gpio_request(LCD_PANEL_INI, "LCD ini");
omap_request_gpio(LCD_PANEL_RESB); gpio_request(LCD_PANEL_RESB, "LCD resb");
omap_request_gpio(LCD_PANEL_QVGA); gpio_request(LCD_PANEL_QVGA, "LCD qvga");
gpio_direction_output(LCD_PANEL_RESB, 1); gpio_direction_output(LCD_PANEL_RESB, 1);
gpio_direction_output(LCD_PANEL_INI, 1); gpio_direction_output(LCD_PANEL_INI, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment