aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-ixp4xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-ixp4xx.c')
-rw-r--r--drivers/usb/host/ehci-ixp4xx.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-ixp4xx.c b/drivers/usb/host/ehci-ixp4xx.c
index 601c8795a854..f9575c409124 100644
--- a/drivers/usb/host/ehci-ixp4xx.c
+++ b/drivers/usb/host/ehci-ixp4xx.c
@@ -26,7 +26,7 @@ static int ixp4xx_ehci_init(struct usb_hcd *hcd)
26 + HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase)); 26 + HC_LENGTH(ehci_readl(ehci, &ehci->caps->hc_capbase));
27 ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params); 27 ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params);
28 28
29 ehci->is_tdi_rh_tt = 1; 29 hcd->has_tt = 1;
30 ehci_reset(ehci); 30 ehci_reset(ehci);
31 31
32 retval = ehci_init(hcd); 32 retval = ehci_init(hcd);
@@ -58,6 +58,8 @@ static const struct hc_driver ixp4xx_ehci_hc_driver = {
58 .bus_suspend = ehci_bus_suspend, 58 .bus_suspend = ehci_bus_suspend,
59 .bus_resume = ehci_bus_resume, 59 .bus_resume = ehci_bus_resume,
60#endif 60#endif
61 .relinquish_port = ehci_relinquish_port,
62 .port_handed_over = ehci_port_handed_over,
61}; 63};
62 64
63static int ixp4xx_ehci_probe(struct platform_device *pdev) 65static int ixp4xx_ehci_probe(struct platform_device *pdev)
@@ -75,12 +77,12 @@ static int ixp4xx_ehci_probe(struct platform_device *pdev)
75 if (!res) { 77 if (!res) {
76 dev_err(&pdev->dev, 78 dev_err(&pdev->dev,
77 "Found HC with no IRQ. Check %s setup!\n", 79 "Found HC with no IRQ. Check %s setup!\n",
78 pdev->dev.bus_id); 80 dev_name(&pdev->dev));
79 return -ENODEV; 81 return -ENODEV;
80 } 82 }
81 irq = res->start; 83 irq = res->start;
82 84
83 hcd = usb_create_hcd(driver, &pdev->dev, pdev->dev.bus_id); 85 hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev));
84 if (!hcd) { 86 if (!hcd) {
85 retval = -ENOMEM; 87 retval = -ENOMEM;
86 goto fail_create_hcd; 88 goto fail_create_hcd;
@@ -90,7 +92,7 @@ static int ixp4xx_ehci_probe(struct platform_device *pdev)
90 if (!res) { 92 if (!res) {
91 dev_err(&pdev->dev, 93 dev_err(&pdev->dev,
92 "Found HC with no register addr. Check %s setup!\n", 94 "Found HC with no register addr. Check %s setup!\n",
93 pdev->dev.bus_id); 95 dev_name(&pdev->dev));
94 retval = -ENODEV; 96 retval = -ENODEV;
95 goto fail_request_resource; 97 goto fail_request_resource;
96 } 98 }
@@ -124,7 +126,7 @@ fail_ioremap:
124fail_request_resource: 126fail_request_resource:
125 usb_put_hcd(hcd); 127 usb_put_hcd(hcd);
126fail_create_hcd: 128fail_create_hcd:
127 dev_err(&pdev->dev, "init %s fail, %d\n", pdev->dev.bus_id, retval); 129 dev_err(&pdev->dev, "init %s fail, %d\n", dev_name(&pdev->dev), retval);
128 return retval; 130 return retval;
129} 131}
130 132