Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359758
b: refs/heads/master
c: 03b79bd
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Zhang Rui committed Jan 4, 2013
1 parent c753075 commit d587646
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: d2a73e225d113fdccd80373ad9aeb2b58b32a30b
refs/heads/master: 03b79bda8d061d80a6106e257c072a2754141bab
7 changes: 2 additions & 5 deletions trunk/drivers/thermal/spear_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static int spear_thermal_probe(struct platform_device *pdev)
return -ENOMEM;
}

stdev->clk = clk_get(&pdev->dev, NULL);
stdev->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(stdev->clk)) {
dev_err(&pdev->dev, "Can't get clock\n");
return PTR_ERR(stdev->clk);
Expand All @@ -140,7 +140,7 @@ static int spear_thermal_probe(struct platform_device *pdev)
ret = clk_enable(stdev->clk);
if (ret) {
dev_err(&pdev->dev, "Can't enable clock\n");
goto put_clk;
return ret;
}

stdev->flags = val;
Expand All @@ -163,8 +163,6 @@ static int spear_thermal_probe(struct platform_device *pdev)

disable_clk:
clk_disable(stdev->clk);
put_clk:
clk_put(stdev->clk);

return ret;
}
Expand All @@ -183,7 +181,6 @@ static int spear_thermal_exit(struct platform_device *pdev)
writel_relaxed(actual_mask & ~stdev->flags, stdev->thermal_base);

clk_disable(stdev->clk);
clk_put(stdev->clk);

return 0;
}
Expand Down

0 comments on commit d587646

Please sign in to comment.