Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210215
b: refs/heads/master
c: 08a3b3b
h: refs/heads/master
i:
  210213: ebb96f0
  210211: 09e8b94
  210207: 3a3287f
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Sep 4, 2010
1 parent ee3ef3b commit be07f81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 0f1312b260499b34bb92fc9bd8ca1560dda2c4da
refs/heads/master: 08a3b3b1c2e622e378d9086aee9e2e42ce37591d
12 changes: 7 additions & 5 deletions trunk/drivers/usb/host/ehci-ppc-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,19 @@ ehci_hcd_ppc_of_probe(struct platform_device *op, const struct of_device_id *mat
}

rv = usb_add_hcd(hcd, irq, 0);
if (rv == 0)
return 0;
if (rv)
goto err_ehci;

return 0;

err_ehci:
if (ehci->has_amcc_usb23)
iounmap(ehci->ohci_hcctrl_reg);
iounmap(hcd->regs);
err_ioremap:
irq_dispose_mapping(irq);
err_irq:
release_mem_region(hcd->rsrc_start, hcd->rsrc_len);

if (ehci->has_amcc_usb23)
iounmap(ehci->ohci_hcctrl_reg);
err_rmr:
usb_put_hcd(hcd);

Expand Down

0 comments on commit be07f81

Please sign in to comment.