aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/usb-simtec.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2009-05-17 17:32:23 -0400
committerBen Dooks <ben-linux@fluff.org>2009-05-18 11:26:03 -0400
commit070276d5d049f385763dee19112bea08f56c9a0d (patch)
tree5a32a885de72f18476ff067a25d8a159ac01629d /arch/arm/mach-s3c2410/usb-simtec.c
parent75cbcff3729fe2568dff38d16d6494f8fb7f59fe (diff)
[ARM] S3C24XX: GPIO: Change to macros for GPIO numbering
Prepare to remove the large number of S3C2410_GPxn defines by moving to S3C2410_GPx(n) in arch/arm. The following perl was used to change the files: perl -pi~ -e 's/S3C2410_GP([A-Z])([0-9]+)([^_^0-9])/S3C2410_GP\1\(\2\)\3/g' Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/usb-simtec.c')
-rw-r--r--arch/arm/mach-s3c2410/usb-simtec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-s3c2410/usb-simtec.c b/arch/arm/mach-s3c2410/usb-simtec.c
index 506252b33fef..dd45eb4a6f0c 100644
--- a/arch/arm/mach-s3c2410/usb-simtec.c
+++ b/arch/arm/mach-s3c2410/usb-simtec.c
@@ -54,9 +54,9 @@ usb_simtec_powercontrol(int port, int to)
54 power_state[port] = to; 54 power_state[port] = to;
55 55
56 if (power_state[0] && power_state[1]) 56 if (power_state[0] && power_state[1])
57 s3c2410_gpio_setpin(S3C2410_GPB4, 0); 57 s3c2410_gpio_setpin(S3C2410_GPB(4), 0);
58 else 58 else
59 s3c2410_gpio_setpin(S3C2410_GPB4, 1); 59 s3c2410_gpio_setpin(S3C2410_GPB(4), 1);
60} 60}
61 61
62static irqreturn_t 62static irqreturn_t
@@ -64,7 +64,7 @@ usb_simtec_ocirq(int irq, void *pw)
64{ 64{
65 struct s3c2410_hcd_info *info = pw; 65 struct s3c2410_hcd_info *info = pw;
66 66
67 if (s3c2410_gpio_getpin(S3C2410_GPG10) == 0) { 67 if (s3c2410_gpio_getpin(S3C2410_GPG(10)) == 0) {
68 pr_debug("usb_simtec: over-current irq (oc detected)\n"); 68 pr_debug("usb_simtec: over-current irq (oc detected)\n");
69 s3c2410_usb_report_oc(info, 3); 69 s3c2410_usb_report_oc(info, 3);
70 } else { 70 } else {
@@ -110,7 +110,7 @@ int usb_simtec_init(void)
110 printk("USB Power Control, (c) 2004 Simtec Electronics\n"); 110 printk("USB Power Control, (c) 2004 Simtec Electronics\n");
111 s3c_device_usb.dev.platform_data = &usb_simtec_info; 111 s3c_device_usb.dev.platform_data = &usb_simtec_info;
112 112
113 s3c2410_gpio_cfgpin(S3C2410_GPB4, S3C2410_GPIO_OUTPUT); 113 s3c2410_gpio_cfgpin(S3C2410_GPB(4), S3C2410_GPIO_OUTPUT);
114 s3c2410_gpio_setpin(S3C2410_GPB4, 1); 114 s3c2410_gpio_setpin(S3C2410_GPB(4), 1);
115 return 0; 115 return 0;
116} 116}