Commit 5c9fb56b authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Kukjin Kim

ARM: S3C24XX: Convert QT2410 board file to the gpiolib API

Replace SoC specific GPIO functions with the gpiolib API. The LED
gpio is freed right after it is configured so it can be acquired
in the s3c24xx_led driver.

This change is required for converting the s3c24xx_led driver
to the gpiolib API.
Signed-off-by: default avatarSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: default avatarHarald Welte <laforge@gnumonks.org>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent ff40b4b1
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <mach/regs-gpio.h>
#include <mach/leds-gpio.h> #include <mach/leds-gpio.h>
#include <mach/regs-lcd.h> #include <mach/regs-lcd.h>
#include <plat/regs-serial.h> #include <plat/regs-serial.h>
...@@ -325,8 +324,9 @@ static void __init qt2410_machine_init(void) ...@@ -325,8 +324,9 @@ static void __init qt2410_machine_init(void)
} }
s3c24xx_fb_set_platdata(&qt2410_fb_info); s3c24xx_fb_set_platdata(&qt2410_fb_info);
s3c_gpio_cfgpin(S3C2410_GPB(0), S3C2410_GPIO_OUTPUT); /* set initial state of the LED GPIO */
s3c2410_gpio_setpin(S3C2410_GPB(0), 1); WARN_ON(gpio_request_one(S3C2410_GPB(0), GPIOF_OUT_INIT_HIGH, NULL));
gpio_free(S3C2410_GPB(0));
s3c24xx_udc_set_platdata(&qt2410_udc_cfg); s3c24xx_udc_set_platdata(&qt2410_udc_cfg);
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
......
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