projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2e0c8
)
ARM: n30: Update mach-n30 to use gpiolib API
author
Ben Dooks
<ben-linux@fluff.org>
Tue, 4 May 2010 03:36:33 +0000
(12:36 +0900)
committer
Ben Dooks
<ben-linux@fluff.org>
Thu, 6 May 2010 00:32:24 +0000
(09:32 +0900)
Change mach-n30.c to use gpiolib for the GPIO lines that are directly
manipulated by it.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/mach-n30.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-s3c2410/mach-n30.c
b/arch/arm/mach-s3c2410/mach-n30.c
index 684710f8814277a46d4ecceb50de23d4c39e74e9..75a9fd37a4675d5d7bb57ccb099e84d4c33c9bc3 100644
(file)
--- a/
arch/arm/mach-s3c2410/mach-n30.c
+++ b/
arch/arm/mach-s3c2410/mach-n30.c
@@
-86,10
+86,10
@@
static void n30_udc_pullup(enum s3c2410_udc_cmd_e cmd)
{
switch (cmd) {
case S3C2410_UDC_P_ENABLE :
-
s3c2410_gpio_setpin
(S3C2410_GPB(3), 1);
+
gpio_set_value
(S3C2410_GPB(3), 1);
break;
case S3C2410_UDC_P_DISABLE :
-
s3c2410_gpio_setpin
(S3C2410_GPB(3), 0);
+
gpio_set_value
(S3C2410_GPB(3), 0);
break;
case S3C2410_UDC_P_RESET :
break;
@@
-536,6
+536,9
@@
static void __init n30_init(void)
platform_add_devices(n35_devices, ARRAY_SIZE(n35_devices));
}
+
+ WARN_ON(gpio_request(S3C2410_GPB(3), "udc pup"));
+ gpio_direction_output(S3C2410_GPB(3), 0);
}
MACHINE_START(N30, "Acer-N30")