Commit 8d01e1ef authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Dave Airlie

drm: shmob_drm: 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: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ab0169bb
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
static void shmob_drm_clk_on(struct shmob_drm_device *sdev) static void shmob_drm_clk_on(struct shmob_drm_device *sdev)
{ {
if (sdev->clock) if (sdev->clock)
clk_enable(sdev->clock); clk_prepare_enable(sdev->clock);
#if 0 #if 0
if (sdev->meram_dev && sdev->meram_dev->pdev) if (sdev->meram_dev && sdev->meram_dev->pdev)
pm_runtime_get_sync(&sdev->meram_dev->pdev->dev); pm_runtime_get_sync(&sdev->meram_dev->pdev->dev);
...@@ -54,7 +54,7 @@ static void shmob_drm_clk_off(struct shmob_drm_device *sdev) ...@@ -54,7 +54,7 @@ static void shmob_drm_clk_off(struct shmob_drm_device *sdev)
pm_runtime_put_sync(&sdev->meram_dev->pdev->dev); pm_runtime_put_sync(&sdev->meram_dev->pdev->dev);
#endif #endif
if (sdev->clock) if (sdev->clock)
clk_disable(sdev->clock); clk_disable_unprepare(sdev->clock);
} }
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
......
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