Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251952
b: refs/heads/master
c: d910774
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed May 26, 2011
1 parent 8a7585d commit 88c30a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 6eb6fbbf3eca6dfba73e72de5ab2eeb52ae41f7a
refs/heads/master: d910774f13678caf68fc9cbbef325f08f7f951a3
4 changes: 3 additions & 1 deletion trunk/drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ static int omap_usbhs_alloc_children(struct platform_device *pdev)

if (!ehci) {
dev_err(dev, "omap_usbhs_alloc_child failed\n");
ret = -ENOMEM;
goto err_end;
}

Expand All @@ -304,13 +305,14 @@ static int omap_usbhs_alloc_children(struct platform_device *pdev)
sizeof(*ohci_data), dev);
if (!ohci) {
dev_err(dev, "omap_usbhs_alloc_child failed\n");
ret = -ENOMEM;
goto err_ehci;
}

return 0;

err_ehci:
platform_device_put(ehci);
platform_device_unregister(ehci);

err_end:
return ret;
Expand Down

0 comments on commit 88c30a3

Please sign in to comment.