From: Laxman Dewangan <ldewan...@nvidia.com>

The ehci_setup() require the pointer of usb_hcd.
Passing the correct pointer in place of ehci_hcd
pointer.

This is side effect of change:
commit 1a49e2ac9651df7349867a5cf44e2c83de1046af
Author: Alan Stern <st...@rowland.harvard.edu>

    EHCI: centralize controller initialization

[Although I checked for this specifically, obviously I missed some of
the calls.  In addition to the mistake in ehci-tegra.c that Laxman
fixed here, the same thing needs to be fixed in ehci-orion.c and
ehci-xls.c. -- Alan Stern]

Signed-off-by: Laxman Dewangan <ldewan...@nvidia.com>
Signed-off-by: Alan Stern <st...@rowland.harvard.edu>

---

 drivers/usb/host/ehci-orion.c |    2 +-
 drivers/usb/host/ehci-tegra.c |    2 +-
 drivers/usb/host/ehci-xls.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: usb-3.5/drivers/usb/host/ehci-orion.c
===================================================================
--- usb-3.5.orig/drivers/usb/host/ehci-orion.c
+++ usb-3.5/drivers/usb/host/ehci-orion.c
@@ -106,7 +106,7 @@ static int ehci_orion_setup(struct usb_h
        struct ehci_hcd *ehci = hcd_to_ehci(hcd);
        int retval;
 
-       retval = ehci_setup(ehci);
+       retval = ehci_setup(hcd);
        if (retval)
                return retval;
 
Index: usb-3.5/drivers/usb/host/ehci-tegra.c
===================================================================
--- usb-3.5.orig/drivers/usb/host/ehci-tegra.c
+++ usb-3.5/drivers/usb/host/ehci-tegra.c
@@ -285,7 +285,7 @@ static int tegra_ehci_setup(struct usb_h
        /* switch to host mode */
        hcd->has_tt = 1;
 
-       retval = ehci_setup(ehci);
+       retval = ehci_setup(hcd);
        if (retval)
                return retval;
 
Index: usb-3.5/drivers/usb/host/ehci-xls.c
===================================================================
--- usb-3.5.orig/drivers/usb/host/ehci-xls.c
+++ usb-3.5/drivers/usb/host/ehci-xls.c
@@ -18,7 +18,7 @@ static int ehci_xls_setup(struct usb_hcd
 
        ehci->caps = hcd->regs;
 
-       return ehci_setup(ehci);
+       return ehci_setup(hcd);
 }
 
 int ehci_xls_probe_internal(const struct hc_driver *driver,

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to