Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303832
b: refs/heads/master
c: 1d144c6
h: refs/heads/master
v: v3
  • Loading branch information
Lukasz Majewski authored and Felipe Balbi committed May 4, 2012
1 parent 99fe7ff commit 12b246c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 04b4a0fce530eab728e27e24b5a8d6192c6f70d9
refs/heads/master: 1d144c6732f6badd4be7a1383a4ae2adcc3f9386
13 changes: 5 additions & 8 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3558,7 +3558,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
hsotg->supplies);
if (ret) {
dev_err(dev, "failed to request supplies: %d\n", ret);
goto err_supplies;
goto err_irq;
}

ret = regulator_bulk_enable(ARRAY_SIZE(hsotg->supplies),
Expand Down Expand Up @@ -3637,24 +3637,21 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)

return 0;

err_ep_mem:
err_ep_mem:
kfree(eps);

err_supplies:
s3c_hsotg_phy_disable(hsotg);

regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);

clk_disable_unprepare(hsotg->clk);
clk_put(hsotg->clk);

err_irq:
free_irq(hsotg->irq, hsotg);
err_regs:
iounmap(hsotg->regs);

err_regs_res:
release_resource(hsotg->regs_res);
kfree(hsotg->regs_res);
err_clk:
clk_disable_unprepare(hsotg->clk);
clk_put(hsotg->clk);
err_mem:
kfree(hsotg);
Expand Down

0 comments on commit 12b246c

Please sign in to comment.