Skip to content

Commit

Permalink
video: exynos_dp: use clk_prepare_enable and clk_disable_unprepare
Browse files Browse the repository at this point in the history
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare
calls as required by common clock framework.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Jingoo Han authored and Florian Tobias Schandinat committed Oct 10, 2012
1 parent 36141e5 commit 37414fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/video/exynos/exynos_dp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ static int __devinit exynos_dp_probe(struct platform_device *pdev)
return PTR_ERR(dp->clock);
}

clk_enable(dp->clock);
clk_prepare_enable(dp->clock);

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);

Expand Down Expand Up @@ -956,7 +956,7 @@ static int __devexit exynos_dp_remove(struct platform_device *pdev)
if (pdata && pdata->phy_exit)
pdata->phy_exit();

clk_disable(dp->clock);
clk_disable_unprepare(dp->clock);

return 0;
}
Expand All @@ -971,7 +971,7 @@ static int exynos_dp_suspend(struct device *dev)
if (pdata && pdata->phy_exit)
pdata->phy_exit();

clk_disable(dp->clock);
clk_disable_unprepare(dp->clock);

return 0;
}
Expand All @@ -985,7 +985,7 @@ static int exynos_dp_resume(struct device *dev)
if (pdata && pdata->phy_init)
pdata->phy_init();

clk_enable(dp->clock);
clk_prepare_enable(dp->clock);

exynos_dp_init_dp(dp);

Expand Down

0 comments on commit 37414fb

Please sign in to comment.