diff options
Diffstat (limited to 'arch/arm/mach-s3c2410/usb-simtec.c')
-rw-r--r-- | arch/arm/mach-s3c2410/usb-simtec.c | 10 |
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 | ||
62 | static irqreturn_t | 62 | static 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 | } |