mmc: sh_mobile_sdhi: Convert to clk_prepare/unprepare
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 28 Oct 2013 22:49:25 +0000 (23:49 +0100)
committerChris Ball <chris@printf.net>
Mon, 13 Jan 2014 17:48:15 +0000 (12:48 -0500)
Turn clk_enable() and clk_disable() calls into clk_prepare_enable() and
clk_disable_unprepare() to get ready for the migration to the common
clock framework.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mobile_sdhi.c

index f344659dceac2739f47e032cbaaec2c54c86b6f6..ed1718a7f5eb0be59e3efe62bb6569b3272c3191 100644 (file)
@@ -54,7 +54,7 @@ static int sh_mobile_sdhi_clk_enable(struct platform_device *pdev, unsigned int
        struct mmc_host *mmc = platform_get_drvdata(pdev);
        struct tmio_mmc_host *host = mmc_priv(mmc);
        struct sh_mobile_sdhi *priv = container_of(host->pdata, struct sh_mobile_sdhi, mmc_data);
-       int ret = clk_enable(priv->clk);
+       int ret = clk_prepare_enable(priv->clk);
        if (ret < 0)
                return ret;
 
@@ -67,7 +67,7 @@ static void sh_mobile_sdhi_clk_disable(struct platform_device *pdev)
        struct mmc_host *mmc = platform_get_drvdata(pdev);
        struct tmio_mmc_host *host = mmc_priv(mmc);
        struct sh_mobile_sdhi *priv = container_of(host->pdata, struct sh_mobile_sdhi, mmc_data);
-       clk_disable(priv->clk);
+       clk_disable_unprepare(priv->clk);
 }
 
 static int sh_mobile_sdhi_wait_idle(struct tmio_mmc_host *host)