tree 042e9ccdbc0448d6d01262d92bc32ebcc4fc737f
parent bf193d3cd2a3b73f2df74f57106114867946c09c
author Ben Dooks <[EMAIL PROTECTED]> Tue, 09 Aug 2005 15:04:00 +0100
committer Greg Kroah-Hartman <[EMAIL PROTECTED]> Fri, 09 Sep 2005 06:28:20 -0700

[PATCH] USB: S3C24XX port numbering fix

Fix the port numbering confusion for the S3C24XX platform device
information as reported by Rudy <[EMAIL PROTECTED]>

This patch ensurs that the the ports are numbered 0 and 1.

Signed-off-by: Ben Dooks <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

 drivers/usb/host/ohci-s3c2410.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c
--- 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
 
        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 
        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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to