diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-08 16:12:35 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-04-15 14:46:03 +0100 |
commit | b7f9a94bf22e8dfa6420faac831e40d2492dd28c (patch) | |
tree | 8576a269de095b2a5b4f86103adf12ed2c653e10 /arch/arm | |
parent | acd216a15db902294904a974f66e1ba18763dc4c (diff) | |
download | blackbird-op-linux-b7f9a94bf22e8dfa6420faac831e40d2492dd28c.tar.gz blackbird-op-linux-b7f9a94bf22e8dfa6420faac831e40d2492dd28c.zip |
[ARM] SMDK6410: Request GPIOs for LCD power control
Going forward gpio_request() will be a requirement for GPIO API users so
call it for the LCD power GPIOs. With present code the kernel functions
but generaets loud WARN_ON()s when using the unrequested GPIOs.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-smdk6410.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c6410/mach-smdk6410.c index 25f7935576f8..7f473e47e4f1 100644 --- a/arch/arm/mach-s3c6410/mach-smdk6410.c +++ b/arch/arm/mach-s3c6410/mach-smdk6410.c @@ -166,6 +166,10 @@ static void __init smdk6410_machine_init(void) s3c_i2c1_set_platdata(NULL); s3c_fb_set_platdata(&smdk6410_lcd_pdata); + gpio_request(S3C64XX_GPN(5), "LCD power"); + gpio_request(S3C64XX_GPF(13), "LCD power"); + gpio_request(S3C64XX_GPF(15), "LCD power"); + i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0)); i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1)); |