diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-05-03 23:36:33 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-05 20:32:24 -0400 |
commit | 96efa8dac85372fdddb1682949b468226126e333 (patch) | |
tree | 8b89e542e5383b3f065c7e043ce1d7e68f0ec3de /arch/arm/mach-s3c2410 | |
parent | 2d2e0c89982c532f9da6891a733b7be43c7048ce (diff) |
ARM: n30: Update mach-n30 to use gpiolib API
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>
Diffstat (limited to 'arch/arm/mach-s3c2410')
-rw-r--r-- | arch/arm/mach-s3c2410/mach-n30.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2410/mach-n30.c b/arch/arm/mach-s3c2410/mach-n30.c index 684710f88142..75a9fd37a467 100644 --- 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) | |||
86 | { | 86 | { |
87 | switch (cmd) { | 87 | switch (cmd) { |
88 | case S3C2410_UDC_P_ENABLE : | 88 | case S3C2410_UDC_P_ENABLE : |
89 | s3c2410_gpio_setpin(S3C2410_GPB(3), 1); | 89 | gpio_set_value(S3C2410_GPB(3), 1); |
90 | break; | 90 | break; |
91 | case S3C2410_UDC_P_DISABLE : | 91 | case S3C2410_UDC_P_DISABLE : |
92 | s3c2410_gpio_setpin(S3C2410_GPB(3), 0); | 92 | gpio_set_value(S3C2410_GPB(3), 0); |
93 | break; | 93 | break; |
94 | case S3C2410_UDC_P_RESET : | 94 | case S3C2410_UDC_P_RESET : |
95 | break; | 95 | break; |
@@ -536,6 +536,9 @@ static void __init n30_init(void) | |||
536 | 536 | ||
537 | platform_add_devices(n35_devices, ARRAY_SIZE(n35_devices)); | 537 | platform_add_devices(n35_devices, ARRAY_SIZE(n35_devices)); |
538 | } | 538 | } |
539 | |||
540 | WARN_ON(gpio_request(S3C2410_GPB(3), "udc pup")); | ||
541 | gpio_direction_output(S3C2410_GPB(3), 0); | ||
539 | } | 542 | } |
540 | 543 | ||
541 | MACHINE_START(N30, "Acer-N30") | 544 | MACHINE_START(N30, "Acer-N30") |