video: exynos_dp: use clk_prepare_enable and clk_disable_unprepare
authorJingoo Han <jg1.han@samsung.com>
Thu, 4 Oct 2012 06:45:14 +0000 (15:45 +0900)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 10 Oct 2012 02:06:37 +0000 (02:06 +0000)
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>
drivers/video/exynos/exynos_dp_core.c

index cdc139800dc9a666475d6dc21d8a432ffbc5ed25..d55470e754126f4b8d54d0b4586682aaa1b00991 100644 (file)
@@ -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);
 
@@ -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;
 }
@@ -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;
 }
@@ -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);