提交 deccd24f 编写于 作者: L Laurent Pinchart 提交者: Tomi Valkeinen

fbdev: shmobile-lcdcfb: Convert to clk_prepare/unprepare

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.

Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 d00affb1
...@@ -344,7 +344,7 @@ static void sh_mobile_lcdc_clk_on(struct sh_mobile_lcdc_priv *priv) ...@@ -344,7 +344,7 @@ static void sh_mobile_lcdc_clk_on(struct sh_mobile_lcdc_priv *priv)
{ {
if (atomic_inc_and_test(&priv->hw_usecnt)) { if (atomic_inc_and_test(&priv->hw_usecnt)) {
if (priv->dot_clk) if (priv->dot_clk)
clk_enable(priv->dot_clk); clk_prepare_enable(priv->dot_clk);
pm_runtime_get_sync(priv->dev); pm_runtime_get_sync(priv->dev);
if (priv->meram_dev && priv->meram_dev->pdev) if (priv->meram_dev && priv->meram_dev->pdev)
pm_runtime_get_sync(&priv->meram_dev->pdev->dev); pm_runtime_get_sync(&priv->meram_dev->pdev->dev);
...@@ -358,7 +358,7 @@ static void sh_mobile_lcdc_clk_off(struct sh_mobile_lcdc_priv *priv) ...@@ -358,7 +358,7 @@ static void sh_mobile_lcdc_clk_off(struct sh_mobile_lcdc_priv *priv)
pm_runtime_put_sync(&priv->meram_dev->pdev->dev); pm_runtime_put_sync(&priv->meram_dev->pdev->dev);
pm_runtime_put(priv->dev); pm_runtime_put(priv->dev);
if (priv->dot_clk) if (priv->dot_clk)
clk_disable(priv->dot_clk); clk_disable_unprepare(priv->dot_clk);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册