Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325897
b: refs/heads/master
c: 84749c6
h: refs/heads/master
i:
  325895: 909ee11
v: v3
  • Loading branch information
Sachin Kamat authored and Felipe Balbi committed Sep 3, 2012
1 parent 00040db commit fed8f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: dc2cdcaf4caafeb069d01704fdfda24f9c1f443a
refs/heads/master: 84749c6dcb694a7aa793221ea8cc3d70bd46d466
4 changes: 1 addition & 3 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3516,7 +3516,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
hsotg->dev = dev;
hsotg->plat = plat;

hsotg->clk = clk_get(&pdev->dev, "otg");
hsotg->clk = devm_clk_get(&pdev->dev, "otg");
if (IS_ERR(hsotg->clk)) {
dev_err(dev, "cannot get otg clock\n");
return PTR_ERR(hsotg->clk);
Expand Down Expand Up @@ -3664,7 +3664,6 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)

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

return ret;
}
Expand All @@ -3690,7 +3689,6 @@ static int __devexit s3c_hsotg_remove(struct platform_device *pdev)
regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);

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

device_unregister(&hsotg->gadget.dev);
return 0;
Expand Down

0 comments on commit fed8f16

Please sign in to comment.