diff options
Diffstat (limited to 'drivers/usb/host/ehci-atmel.c')
-rw-r--r-- | drivers/usb/host/ehci-atmel.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index 51bd0edf544f..a5a3ef1f0096 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c | |||
@@ -56,7 +56,7 @@ static int ehci_atmel_setup(struct usb_hcd *hcd) | |||
56 | /* registers start at offset 0x0 */ | 56 | /* registers start at offset 0x0 */ |
57 | ehci->caps = hcd->regs; | 57 | ehci->caps = hcd->regs; |
58 | ehci->regs = hcd->regs + | 58 | ehci->regs = hcd->regs + |
59 | HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase)); | 59 | HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); |
60 | dbg_hcs_params(ehci, "reset"); | 60 | dbg_hcs_params(ehci, "reset"); |
61 | dbg_hcc_params(ehci, "reset"); | 61 | dbg_hcc_params(ehci, "reset"); |
62 | 62 | ||
@@ -99,6 +99,7 @@ static const struct hc_driver ehci_atmel_hc_driver = { | |||
99 | .urb_enqueue = ehci_urb_enqueue, | 99 | .urb_enqueue = ehci_urb_enqueue, |
100 | .urb_dequeue = ehci_urb_dequeue, | 100 | .urb_dequeue = ehci_urb_dequeue, |
101 | .endpoint_disable = ehci_endpoint_disable, | 101 | .endpoint_disable = ehci_endpoint_disable, |
102 | .endpoint_reset = ehci_endpoint_reset, | ||
102 | 103 | ||
103 | /* scheduling support */ | 104 | /* scheduling support */ |
104 | .get_frame_number = ehci_get_frame, | 105 | .get_frame_number = ehci_get_frame, |
@@ -110,9 +111,11 @@ static const struct hc_driver ehci_atmel_hc_driver = { | |||
110 | .bus_resume = ehci_bus_resume, | 111 | .bus_resume = ehci_bus_resume, |
111 | .relinquish_port = ehci_relinquish_port, | 112 | .relinquish_port = ehci_relinquish_port, |
112 | .port_handed_over = ehci_port_handed_over, | 113 | .port_handed_over = ehci_port_handed_over, |
114 | |||
115 | .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, | ||
113 | }; | 116 | }; |
114 | 117 | ||
115 | static int __init ehci_atmel_drv_probe(struct platform_device *pdev) | 118 | static int __devinit ehci_atmel_drv_probe(struct platform_device *pdev) |
116 | { | 119 | { |
117 | struct usb_hcd *hcd; | 120 | struct usb_hcd *hcd; |
118 | const struct hc_driver *driver = &ehci_atmel_hc_driver; | 121 | const struct hc_driver *driver = &ehci_atmel_hc_driver; |
@@ -204,7 +207,7 @@ fail_create_hcd: | |||
204 | return retval; | 207 | return retval; |
205 | } | 208 | } |
206 | 209 | ||
207 | static int __exit ehci_atmel_drv_remove(struct platform_device *pdev) | 210 | static int __devexit ehci_atmel_drv_remove(struct platform_device *pdev) |
208 | { | 211 | { |
209 | struct usb_hcd *hcd = platform_get_drvdata(pdev); | 212 | struct usb_hcd *hcd = platform_get_drvdata(pdev); |
210 | 213 | ||
@@ -224,7 +227,7 @@ static int __exit ehci_atmel_drv_remove(struct platform_device *pdev) | |||
224 | 227 | ||
225 | static struct platform_driver ehci_atmel_driver = { | 228 | static struct platform_driver ehci_atmel_driver = { |
226 | .probe = ehci_atmel_drv_probe, | 229 | .probe = ehci_atmel_drv_probe, |
227 | .remove = __exit_p(ehci_atmel_drv_remove), | 230 | .remove = __devexit_p(ehci_atmel_drv_remove), |
228 | .shutdown = usb_hcd_platform_shutdown, | 231 | .shutdown = usb_hcd_platform_shutdown, |
229 | .driver.name = "atmel-ehci", | 232 | .driver.name = "atmel-ehci", |
230 | }; | 233 | }; |