Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354633
b: refs/heads/master
c: cd76213
h: refs/heads/master
i:
  354631: b32b0e5
v: v3
  • Loading branch information
Sachin Kamat authored and Felipe Balbi committed Jan 10, 2013
1 parent 93d16b5 commit 7d8a3c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 924d2532ab1897b034fa5477aea661732b91d748
refs/heads/master: cd76213eb57c505d3df6fa3134a6b3bb5394a90c
5 changes: 1 addition & 4 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3573,7 +3573,7 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
for (i = 0; i < ARRAY_SIZE(hsotg->supplies); i++)
hsotg->supplies[i].supply = s3c_hsotg_supply_names[i];

ret = regulator_bulk_get(dev, ARRAY_SIZE(hsotg->supplies),
ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(hsotg->supplies),
hsotg->supplies);
if (ret) {
dev_err(dev, "failed to request supplies: %d\n", ret);
Expand Down Expand Up @@ -3663,8 +3663,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
kfree(eps);
err_supplies:
s3c_hsotg_phy_disable(hsotg);
regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);

err_clk:
clk_disable_unprepare(hsotg->clk);

Expand All @@ -3689,7 +3687,6 @@ static int s3c_hsotg_remove(struct platform_device *pdev)
}

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

clk_disable_unprepare(hsotg->clk);

Expand Down

0 comments on commit 7d8a3c9

Please sign in to comment.