Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233147
b: refs/heads/master
c: 80d02d2
h: refs/heads/master
i:
  233145: a373838
  233143: a8afba6
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Feb 12, 2011
1 parent a809e54 commit 33b55f0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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: 678ff896a37afdbca292c7846ec895463aed35a5
refs/heads/master: 80d02d273641d515269c016d9e8da5882e4432e4
28 changes: 14 additions & 14 deletions trunk/drivers/w1/masters/omap_hdq.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,19 +593,17 @@ static int __devinit omap_hdq_probe(struct platform_device *pdev)

/* get interface & functional clock objects */
hdq_data->hdq_ick = clk_get(&pdev->dev, "ick");
hdq_data->hdq_fck = clk_get(&pdev->dev, "fck");
if (IS_ERR(hdq_data->hdq_ick)) {
dev_dbg(&pdev->dev, "Can't get HDQ ick clock object\n");
ret = PTR_ERR(hdq_data->hdq_ick);
goto err_ick;
}

if (IS_ERR(hdq_data->hdq_ick) || IS_ERR(hdq_data->hdq_fck)) {
dev_dbg(&pdev->dev, "Can't get HDQ clock objects\n");
if (IS_ERR(hdq_data->hdq_ick)) {
ret = PTR_ERR(hdq_data->hdq_ick);
goto err_clk;
}
if (IS_ERR(hdq_data->hdq_fck)) {
ret = PTR_ERR(hdq_data->hdq_fck);
clk_put(hdq_data->hdq_ick);
goto err_clk;
}
hdq_data->hdq_fck = clk_get(&pdev->dev, "fck");
if (IS_ERR(hdq_data->hdq_fck)) {
dev_dbg(&pdev->dev, "Can't get HDQ fck clock object\n");
ret = PTR_ERR(hdq_data->hdq_fck);
goto err_fck;
}

hdq_data->hdq_usecount = 0;
Expand Down Expand Up @@ -665,10 +663,12 @@ static int __devinit omap_hdq_probe(struct platform_device *pdev)
clk_disable(hdq_data->hdq_ick);

err_intfclk:
clk_put(hdq_data->hdq_ick);
clk_put(hdq_data->hdq_fck);

err_clk:
err_fck:
clk_put(hdq_data->hdq_ick);

err_ick:
iounmap(hdq_data->hdq_base);

err_ioremap:
Expand Down

0 comments on commit 33b55f0

Please sign in to comment.