projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf193d3
)
[PATCH] USB: S3C24XX port numbering fix
author
Ben Dooks
<ben-linux@fluff.org>
Tue, 9 Aug 2005 14:04:00 +0000
(15:04 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 8 Sep 2005 23:28:20 +0000
(16:28 -0700)
Fix the port numbering confusion for the S3C24XX platform device
information as reported by Rudy <rudyboy168@gmail.com>
This patch ensurs that the the ports are numbered 0 and 1.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-s3c2410.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/ohci-s3c2410.c
b/drivers/usb/host/ohci-s3c2410.c
index e9401662503cd62156be6885c42960ce5b46996f..3d9bcf78a9a4f6ed0b9084ac220779342f009c40 100644
(file)
--- a/
drivers/usb/host/ohci-s3c2410.c
+++ b/
drivers/usb/host/ohci-s3c2410.c
@@
-129,7
+129,7
@@
static void s3c2410_usb_set_power(struct s3c2410_hcd_info *info,
if (info->power_control != NULL) {
info->port[port-1].power = to;
- (info->power_control)(port, to);
+ (info->power_control)(port
-1
, to);
}
}
@@
-339,8
+339,8
@@
int usb_hcd_s3c2410_probe (const struct hc_driver *driver,
struct usb_hcd *hcd = NULL;
int retval;
- s3c2410_usb_set_power(dev->dev.platform_data, 0, 1);
s3c2410_usb_set_power(dev->dev.platform_data, 1, 1);
+ s3c2410_usb_set_power(dev->dev.platform_data, 2, 1);
hcd = usb_create_hcd(driver, &dev->dev, "s3c24xx");
if (hcd == NULL)