Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319155
b: refs/heads/master
c: a3f24c0
h: refs/heads/master
i:
  319153: 194122d
  319151: b2a425e
v: v3
  • Loading branch information
Linus Walleij authored and Wolfram Sang committed Jul 9, 2012
1 parent f7369d9 commit a8ade27
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: a55b44ac3fe07d4e89486817732b596fce6ab9f6
refs/heads/master: a3f24c0dbd0b9a7624d077b3c1841dde267aaa6c
4 changes: 3 additions & 1 deletion trunk/drivers/i2c/busses/i2c-stu300.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ stu300_probe(struct platform_device *pdev)

dev->speed = scl_frequency;

clk_enable(dev->clk);
clk_prepare_enable(dev->clk);
ret = stu300_init_hw(dev);
clk_disable(dev->clk);

Expand Down Expand Up @@ -960,6 +960,7 @@ stu300_probe(struct platform_device *pdev)

err_add_adapter:
err_init_hw:
clk_unprepare(dev->clk);
free_irq(dev->irq, dev);
err_no_irq:
iounmap(dev->virtbase);
Expand Down Expand Up @@ -1016,6 +1017,7 @@ stu300_remove(struct platform_device *pdev)
free_irq(dev->irq, dev);
iounmap(dev->virtbase);
release_mem_region(dev->phybase, dev->physize);
clk_unprepare(dev->clk);
clk_put(dev->clk);
platform_set_drvdata(pdev, NULL);
kfree(dev);
Expand Down

0 comments on commit a8ade27

Please sign in to comment.