Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374574
b: refs/heads/master
c: eea2d48
h: refs/heads/master
v: v3
  • Loading branch information
Zhang Rui committed Apr 24, 2013
1 parent 1b3c7e5 commit 481674f
Show file tree
Hide file tree
Showing 2 changed files with 12 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: a00e55f9c8c06e2bba5db5f2e7dec16b86d560ec
refs/heads/master: eea2d4812dbe14a00f657641a0ac3ba0a36ad33c
14 changes: 11 additions & 3 deletions trunk/drivers/thermal/exynos_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,10 @@ static const struct of_device_id exynos_tmu_match[] = {
.compatible = "samsung,exynos4210-tmu",
.data = (void *)EXYNOS4210_TMU_DRV_DATA,
},
{
.compatible = "samsung,exynos4412-tmu",
.data = (void *)EXYNOS_TMU_DRV_DATA,
},
{
.compatible = "samsung,exynos5250-tmu",
.data = (void *)EXYNOS_TMU_DRV_DATA,
Expand Down Expand Up @@ -937,12 +941,16 @@ static int exynos_tmu_probe(struct platform_device *pdev)
return ret;
}

data->clk = clk_get(NULL, "tmu_apbif");
data->clk = devm_clk_get(&pdev->dev, "tmu_apbif");
if (IS_ERR(data->clk)) {
dev_err(&pdev->dev, "Failed to get clock\n");
return PTR_ERR(data->clk);
}

ret = clk_prepare(data->clk);
if (ret)
return ret;

if (pdata->type == SOC_ARCH_EXYNOS ||
pdata->type == SOC_ARCH_EXYNOS4210)
data->soc = pdata->type;
Expand Down Expand Up @@ -994,7 +1002,7 @@ static int exynos_tmu_probe(struct platform_device *pdev)
return 0;
err_clk:
platform_set_drvdata(pdev, NULL);
clk_put(data->clk);
clk_unprepare(data->clk);
return ret;
}

Expand All @@ -1006,7 +1014,7 @@ static int exynos_tmu_remove(struct platform_device *pdev)

exynos_unregister_thermal();

clk_put(data->clk);
clk_unprepare(data->clk);

platform_set_drvdata(pdev, NULL);

Expand Down

0 comments on commit 481674f

Please sign in to comment.