diff options
Diffstat (limited to 'drivers/usb/host/ehci-xilinx-of.c')
-rw-r--r-- | drivers/usb/host/ehci-xilinx-of.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/drivers/usb/host/ehci-xilinx-of.c b/drivers/usb/host/ehci-xilinx-of.c index e9713d589e30..39f24fa37ebe 100644 --- a/drivers/usb/host/ehci-xilinx-of.c +++ b/drivers/usb/host/ehci-xilinx-of.c | |||
@@ -32,30 +32,6 @@ | |||
32 | #include <linux/of_address.h> | 32 | #include <linux/of_address.h> |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * ehci_xilinx_of_setup - Initialize the device for ehci_reset() | ||
36 | * @hcd: Pointer to the usb_hcd device to which the host controller bound | ||
37 | * | ||
38 | * called during probe() after chip reset completes. | ||
39 | */ | ||
40 | static int ehci_xilinx_of_setup(struct usb_hcd *hcd) | ||
41 | { | ||
42 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); | ||
43 | int retval; | ||
44 | |||
45 | retval = ehci_halt(ehci); | ||
46 | if (retval) | ||
47 | return retval; | ||
48 | |||
49 | retval = ehci_init(hcd); | ||
50 | if (retval) | ||
51 | return retval; | ||
52 | |||
53 | ehci->sbrn = 0x20; | ||
54 | |||
55 | return ehci_reset(ehci); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * ehci_xilinx_port_handed_over - hand the port out if failed to enable it | 35 | * ehci_xilinx_port_handed_over - hand the port out if failed to enable it |
60 | * @hcd: Pointer to the usb_hcd device to which the host controller bound | 36 | * @hcd: Pointer to the usb_hcd device to which the host controller bound |
61 | * @portnum:Port number to which the device is attached. | 37 | * @portnum:Port number to which the device is attached. |
@@ -107,7 +83,7 @@ static const struct hc_driver ehci_xilinx_of_hc_driver = { | |||
107 | /* | 83 | /* |
108 | * basic lifecycle operations | 84 | * basic lifecycle operations |
109 | */ | 85 | */ |
110 | .reset = ehci_xilinx_of_setup, | 86 | .reset = ehci_setup, |
111 | .start = ehci_run, | 87 | .start = ehci_run, |
112 | .stop = ehci_stop, | 88 | .stop = ehci_stop, |
113 | .shutdown = ehci_shutdown, | 89 | .shutdown = ehci_shutdown, |
@@ -219,11 +195,6 @@ static int __devinit ehci_hcd_xilinx_of_probe(struct platform_device *op) | |||
219 | /* Debug registers are at the first 0x100 region | 195 | /* Debug registers are at the first 0x100 region |
220 | */ | 196 | */ |
221 | ehci->caps = hcd->regs + 0x100; | 197 | ehci->caps = hcd->regs + 0x100; |
222 | ehci->regs = hcd->regs + 0x100 + | ||
223 | HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); | ||
224 | |||
225 | /* cache this readonly data; minimize chip reads */ | ||
226 | ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params); | ||
227 | 198 | ||
228 | rv = usb_add_hcd(hcd, irq, 0); | 199 | rv = usb_add_hcd(hcd, irq, 0); |
229 | if (rv == 0) | 200 | if (rv == 0) |