diff options
Diffstat (limited to 'drivers/usb/host/ehci-tegra.c')
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 7ef00ecb0da1..6fdcb8ad2296 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c | |||
@@ -51,10 +51,6 @@ struct tegra_ehci_soc_config { | |||
51 | bool has_hostpc; | 51 | bool has_hostpc; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | static int (*orig_hub_control)(struct usb_hcd *hcd, | ||
55 | u16 typeReq, u16 wValue, u16 wIndex, | ||
56 | char *buf, u16 wLength); | ||
57 | |||
58 | struct tegra_ehci_hcd { | 54 | struct tegra_ehci_hcd { |
59 | struct tegra_usb_phy *phy; | 55 | struct tegra_usb_phy *phy; |
60 | struct clk *clk; | 56 | struct clk *clk; |
@@ -236,7 +232,7 @@ static int tegra_ehci_hub_control( | |||
236 | spin_unlock_irqrestore(&ehci->lock, flags); | 232 | spin_unlock_irqrestore(&ehci->lock, flags); |
237 | 233 | ||
238 | /* Handle the hub control events here */ | 234 | /* Handle the hub control events here */ |
239 | return orig_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); | 235 | return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); |
240 | 236 | ||
241 | done: | 237 | done: |
242 | spin_unlock_irqrestore(&ehci->lock, flags); | 238 | spin_unlock_irqrestore(&ehci->lock, flags); |
@@ -415,10 +411,9 @@ static int tegra_ehci_probe(struct platform_device *pdev) | |||
415 | } | 411 | } |
416 | hcd->rsrc_start = res->start; | 412 | hcd->rsrc_start = res->start; |
417 | hcd->rsrc_len = resource_size(res); | 413 | hcd->rsrc_len = resource_size(res); |
418 | hcd->regs = devm_ioremap(&pdev->dev, res->start, resource_size(res)); | 414 | hcd->regs = devm_ioremap_resource(&pdev->dev, res); |
419 | if (!hcd->regs) { | 415 | if (IS_ERR(hcd->regs)) { |
420 | dev_err(&pdev->dev, "Failed to remap I/O memory\n"); | 416 | err = PTR_ERR(hcd->regs); |
421 | err = -ENOMEM; | ||
422 | goto cleanup_clk_en; | 417 | goto cleanup_clk_en; |
423 | } | 418 | } |
424 | ehci->caps = hcd->regs + 0x100; | 419 | ehci->caps = hcd->regs + 0x100; |
@@ -554,8 +549,6 @@ static int __init ehci_tegra_init(void) | |||
554 | * too easy. | 549 | * too easy. |
555 | */ | 550 | */ |
556 | 551 | ||
557 | orig_hub_control = tegra_ehci_hc_driver.hub_control; | ||
558 | |||
559 | tegra_ehci_hc_driver.map_urb_for_dma = tegra_ehci_map_urb_for_dma; | 552 | tegra_ehci_hc_driver.map_urb_for_dma = tegra_ehci_map_urb_for_dma; |
560 | tegra_ehci_hc_driver.unmap_urb_for_dma = tegra_ehci_unmap_urb_for_dma; | 553 | tegra_ehci_hc_driver.unmap_urb_for_dma = tegra_ehci_unmap_urb_for_dma; |
561 | tegra_ehci_hc_driver.hub_control = tegra_ehci_hub_control; | 554 | tegra_ehci_hc_driver.hub_control = tegra_ehci_hub_control; |