diff options
Diffstat (limited to 'drivers/usb/host/ehci-atmel.c')
-rw-r--r-- | drivers/usb/host/ehci-atmel.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index 411bb74152eb..27639487f7ac 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c | |||
@@ -53,18 +53,11 @@ static void atmel_stop_ehci(struct platform_device *pdev) | |||
53 | static int ehci_atmel_setup(struct usb_hcd *hcd) | 53 | static int ehci_atmel_setup(struct usb_hcd *hcd) |
54 | { | 54 | { |
55 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); | 55 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); |
56 | int retval; | ||
57 | 56 | ||
58 | /* registers start at offset 0x0 */ | 57 | /* registers start at offset 0x0 */ |
59 | ehci->caps = hcd->regs; | 58 | ehci->caps = hcd->regs; |
60 | 59 | ||
61 | retval = ehci_setup(hcd); | 60 | return ehci_setup(hcd); |
62 | if (retval) | ||
63 | return retval; | ||
64 | |||
65 | ehci_port_power(ehci, 0); | ||
66 | |||
67 | return retval; | ||
68 | } | 61 | } |
69 | 62 | ||
70 | static const struct hc_driver ehci_atmel_hc_driver = { | 63 | static const struct hc_driver ehci_atmel_hc_driver = { |
@@ -104,7 +97,7 @@ static const struct hc_driver ehci_atmel_hc_driver = { | |||
104 | 97 | ||
105 | static u64 at91_ehci_dma_mask = DMA_BIT_MASK(32); | 98 | static u64 at91_ehci_dma_mask = DMA_BIT_MASK(32); |
106 | 99 | ||
107 | static int __devinit ehci_atmel_drv_probe(struct platform_device *pdev) | 100 | static int ehci_atmel_drv_probe(struct platform_device *pdev) |
108 | { | 101 | { |
109 | struct usb_hcd *hcd; | 102 | struct usb_hcd *hcd; |
110 | const struct hc_driver *driver = &ehci_atmel_hc_driver; | 103 | const struct hc_driver *driver = &ehci_atmel_hc_driver; |
@@ -189,7 +182,7 @@ fail_create_hcd: | |||
189 | return retval; | 182 | return retval; |
190 | } | 183 | } |
191 | 184 | ||
192 | static int __devexit ehci_atmel_drv_remove(struct platform_device *pdev) | 185 | static int ehci_atmel_drv_remove(struct platform_device *pdev) |
193 | { | 186 | { |
194 | struct usb_hcd *hcd = platform_get_drvdata(pdev); | 187 | struct usb_hcd *hcd = platform_get_drvdata(pdev); |
195 | 188 | ||
@@ -214,7 +207,7 @@ MODULE_DEVICE_TABLE(of, atmel_ehci_dt_ids); | |||
214 | 207 | ||
215 | static struct platform_driver ehci_atmel_driver = { | 208 | static struct platform_driver ehci_atmel_driver = { |
216 | .probe = ehci_atmel_drv_probe, | 209 | .probe = ehci_atmel_drv_probe, |
217 | .remove = __devexit_p(ehci_atmel_drv_remove), | 210 | .remove = ehci_atmel_drv_remove, |
218 | .shutdown = usb_hcd_platform_shutdown, | 211 | .shutdown = usb_hcd_platform_shutdown, |
219 | .driver = { | 212 | .driver = { |
220 | .name = "atmel-ehci", | 213 | .name = "atmel-ehci", |