Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325807
b: refs/heads/master
c: df5eb3f
h: refs/heads/master
i:
  325805: ddbe75b
  325803: b4645a1
  325799: 72ef7d5
  325791: 3270a82
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Aug 10, 2012
1 parent 66c4ba9 commit fab473a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84b79838b9bcf7a9c2c09f4de930b8d476f1e70b
refs/heads/master: df5eb3ffa8bfd23be8189cb0c58ed0c4902b6bfd
13 changes: 4 additions & 9 deletions trunk/drivers/usb/host/ehci-msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int ehci_msm_probe(struct platform_device *pdev)

hcd->rsrc_start = res->start;
hcd->rsrc_len = resource_size(res);
hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len);
hcd->regs = devm_ioremap(&pdev->dev, hcd->rsrc_start, hcd->rsrc_len);
if (!hcd->regs) {
dev_err(&pdev->dev, "ioremap failed\n");
ret = -ENOMEM;
Expand All @@ -145,17 +145,17 @@ static int ehci_msm_probe(struct platform_device *pdev)
* powering up VBUS, mapping of registers address space and power
* management.
*/
phy = usb_get_phy(USB_PHY_TYPE_USB2);
phy = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2);
if (IS_ERR_OR_NULL(phy)) {
dev_err(&pdev->dev, "unable to find transceiver\n");
ret = -ENODEV;
goto unmap;
goto put_hcd;
}

ret = otg_set_host(phy->otg, &hcd->self);
if (ret < 0) {
dev_err(&pdev->dev, "unable to register with transceiver\n");
goto put_transceiver;
goto put_hcd;
}

device_init_wakeup(&pdev->dev, 1);
Expand All @@ -168,10 +168,6 @@ static int ehci_msm_probe(struct platform_device *pdev)

return 0;

put_transceiver:
usb_put_phy(phy);
unmap:
iounmap(hcd->regs);
put_hcd:
usb_put_hcd(hcd);

Expand All @@ -187,7 +183,6 @@ static int __devexit ehci_msm_remove(struct platform_device *pdev)
pm_runtime_set_suspended(&pdev->dev);

otg_set_host(phy->otg, NULL);
usb_put_phy(phy);

usb_put_hcd(hcd);

Expand Down

0 comments on commit fab473a

Please sign in to comment.