Commit 37414fbe authored by Jingoo Han's avatar Jingoo Han Committed by Florian Tobias Schandinat

video: exynos_dp: use clk_prepare_enable and clk_disable_unprepare

Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare
calls as required by common clock framework.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
parent 36141e56
...@@ -885,7 +885,7 @@ static int __devinit exynos_dp_probe(struct platform_device *pdev) ...@@ -885,7 +885,7 @@ static int __devinit exynos_dp_probe(struct platform_device *pdev)
return PTR_ERR(dp->clock); return PTR_ERR(dp->clock);
} }
clk_enable(dp->clock); clk_prepare_enable(dp->clock);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
...@@ -956,7 +956,7 @@ static int __devexit exynos_dp_remove(struct platform_device *pdev) ...@@ -956,7 +956,7 @@ static int __devexit exynos_dp_remove(struct platform_device *pdev)
if (pdata && pdata->phy_exit) if (pdata && pdata->phy_exit)
pdata->phy_exit(); pdata->phy_exit();
clk_disable(dp->clock); clk_disable_unprepare(dp->clock);
return 0; return 0;
} }
...@@ -971,7 +971,7 @@ static int exynos_dp_suspend(struct device *dev) ...@@ -971,7 +971,7 @@ static int exynos_dp_suspend(struct device *dev)
if (pdata && pdata->phy_exit) if (pdata && pdata->phy_exit)
pdata->phy_exit(); pdata->phy_exit();
clk_disable(dp->clock); clk_disable_unprepare(dp->clock);
return 0; return 0;
} }
...@@ -985,7 +985,7 @@ static int exynos_dp_resume(struct device *dev) ...@@ -985,7 +985,7 @@ static int exynos_dp_resume(struct device *dev)
if (pdata && pdata->phy_init) if (pdata && pdata->phy_init)
pdata->phy_init(); pdata->phy_init();
clk_enable(dp->clock); clk_prepare_enable(dp->clock);
exynos_dp_init_dp(dp); exynos_dp_init_dp(dp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment