diff options
author | Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | 2012-07-13 05:04:50 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-07-13 05:04:50 -0400 |
commit | 5c9fb56b456eb4ebb82adfcad2edeb3c4821925a (patch) | |
tree | 4b3cf50207d5148371584ae13dd14550368551a9 /arch/arm/mach-s3c24xx | |
parent | ff40b4b154415eceb54daae989f5459ed74d0ca2 (diff) |
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: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-qt2410.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-qt2410.c b/arch/arm/mach-s3c24xx/mach-qt2410.c index b868dddcb836..678bbca2b5e5 100644 --- a/arch/arm/mach-s3c24xx/mach-qt2410.c +++ b/arch/arm/mach-s3c24xx/mach-qt2410.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #include <asm/irq.h> | 47 | #include <asm/irq.h> |
48 | #include <asm/mach-types.h> | 48 | #include <asm/mach-types.h> |
49 | 49 | ||
50 | #include <mach/regs-gpio.h> | ||
51 | #include <mach/leds-gpio.h> | 50 | #include <mach/leds-gpio.h> |
52 | #include <mach/regs-lcd.h> | 51 | #include <mach/regs-lcd.h> |
53 | #include <plat/regs-serial.h> | 52 | #include <plat/regs-serial.h> |
@@ -325,8 +324,9 @@ static void __init qt2410_machine_init(void) | |||
325 | } | 324 | } |
326 | s3c24xx_fb_set_platdata(&qt2410_fb_info); | 325 | s3c24xx_fb_set_platdata(&qt2410_fb_info); |
327 | 326 | ||
328 | s3c_gpio_cfgpin(S3C2410_GPB(0), S3C2410_GPIO_OUTPUT); | 327 | /* set initial state of the LED GPIO */ |
329 | s3c2410_gpio_setpin(S3C2410_GPB(0), 1); | 328 | WARN_ON(gpio_request_one(S3C2410_GPB(0), GPIOF_OUT_INIT_HIGH, NULL)); |
329 | gpio_free(S3C2410_GPB(0)); | ||
330 | 330 | ||
331 | s3c24xx_udc_set_platdata(&qt2410_udc_cfg); | 331 | s3c24xx_udc_set_platdata(&qt2410_udc_cfg); |
332 | s3c_i2c0_set_platdata(NULL); | 332 | s3c_i2c0_set_platdata(NULL); |