usb: host: tegra: pass correct pointer in ehci_setup()
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 12 Jul 2012 14:34:56 +0000 (10:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2012 00:13:39 +0000 (17:13 -0700)
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 <stern@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 <ldewangan@nvidia.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-orion.c
drivers/usb/host/ehci-tegra.c
drivers/usb/host/ehci-xls.c

index 3e411230953bda0939907d712a0eff0749f030d2..9408da83eaf156172c9c72c00006544de3c6bb57 100644 (file)
@@ -106,7 +106,7 @@ static int ehci_orion_setup(struct usb_hcd *hcd)
        struct ehci_hcd *ehci = hcd_to_ehci(hcd);
        int retval;
 
-       retval = ehci_setup(ehci);
+       retval = ehci_setup(hcd);
        if (retval)
                return retval;
 
index 65360945df78016cf2231e8224061e5a841be0b5..562c80e2bfe03e95f476c013d1feaab40b2ba33d 100644 (file)
@@ -285,7 +285,7 @@ static int tegra_ehci_setup(struct usb_hcd *hcd)
        /* switch to host mode */
        hcd->has_tt = 1;
 
-       retval = ehci_setup(ehci);
+       retval = ehci_setup(hcd);
        if (retval)
                return retval;
 
index 99c353a85ae4a7c216eb47f398b856ef3e206a22..8dc6a22d90b87f1a30392258c7cb41b5310d7538 100644 (file)
@@ -18,7 +18,7 @@ static int ehci_xls_setup(struct usb_hcd *hcd)
 
        ehci->caps = hcd->regs;
 
-       return ehci_setup(ehci);
+       return ehci_setup(hcd);
 }
 
 int ehci_xls_probe_internal(const struct hc_driver *driver,