projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408c8b8
)
ARM: VR1000: Update mach-vr1000.c to use gpiolib API
author
Ben Dooks
<ben-linux@fluff.org>
Tue, 4 May 2010 03:53:11 +0000
(12:53 +0900)
committer
Ben Dooks
<ben-linux@fluff.org>
Thu, 6 May 2010 00:32:26 +0000
(09:32 +0900)
Change mach-vr1000.c to use gpiolib for gpio control.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/mach-vr1000.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-s3c2410/mach-vr1000.c
b/arch/arm/mach-s3c2410/mach-vr1000.c
index
9051f0d
..
d540d79
100644
(file)
--- a/
arch/arm/mach-s3c2410/mach-vr1000.c
+++ b/
arch/arm/mach-s3c2410/mach-vr1000.c
@@
-357,8
+357,7
@@
static struct clk *vr1000_clocks[] __initdata = {
static void vr1000_power_off(void)
{
- s3c2410_gpio_cfgpin(S3C2410_GPB(9), S3C2410_GPIO_OUTPUT);
- s3c2410_gpio_setpin(S3C2410_GPB(9), 1);
+ gpio_direction_output(S3C2410_GPB(9), 1);
}
static void __init vr1000_map_io(void)
@@
-395,6
+394,8
@@
static void __init vr1000_init(void)
nor_simtec_init();
simtec_audio_add(NULL, true, NULL);
+
+ WARN_ON(gpio_request(S3C2410_GPB(9), "power off"));
}
MACHINE_START(VR1000, "Thorcom-VR1000")