Commit 72119743 authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Greg Kroah-Hartman

usb: host: tegra: pass correct pointer in ehci_setup()

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 1a49e2ac
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: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08d7660d
...@@ -106,7 +106,7 @@ static int ehci_orion_setup(struct usb_hcd *hcd) ...@@ -106,7 +106,7 @@ static int ehci_orion_setup(struct usb_hcd *hcd)
struct ehci_hcd *ehci = hcd_to_ehci(hcd); struct ehci_hcd *ehci = hcd_to_ehci(hcd);
int retval; int retval;
retval = ehci_setup(ehci); retval = ehci_setup(hcd);
if (retval) if (retval)
return retval; return retval;
......
...@@ -285,7 +285,7 @@ static int tegra_ehci_setup(struct usb_hcd *hcd) ...@@ -285,7 +285,7 @@ static int tegra_ehci_setup(struct usb_hcd *hcd)
/* switch to host mode */ /* switch to host mode */
hcd->has_tt = 1; hcd->has_tt = 1;
retval = ehci_setup(ehci); retval = ehci_setup(hcd);
if (retval) if (retval)
return retval; return retval;
......
...@@ -18,7 +18,7 @@ static int ehci_xls_setup(struct usb_hcd *hcd) ...@@ -18,7 +18,7 @@ static int ehci_xls_setup(struct usb_hcd *hcd)
ehci->caps = hcd->regs; ehci->caps = hcd->regs;
return ehci_setup(ehci); return ehci_setup(hcd);
} }
int ehci_xls_probe_internal(const struct hc_driver *driver, int ehci_xls_probe_internal(const struct hc_driver *driver,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment