Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Laurent Pinchart and committed by
Dave Airlie
8d01e1ef ab0169bb

+2 -2
+2 -2
drivers/gpu/drm/shmobile/shmob_drm_crtc.c
··· 40 40 static void shmob_drm_clk_on(struct shmob_drm_device *sdev) 41 41 { 42 42 if (sdev->clock) 43 - clk_enable(sdev->clock); 43 + clk_prepare_enable(sdev->clock); 44 44 #if 0 45 45 if (sdev->meram_dev && sdev->meram_dev->pdev) 46 46 pm_runtime_get_sync(&sdev->meram_dev->pdev->dev); ··· 54 54 pm_runtime_put_sync(&sdev->meram_dev->pdev->dev); 55 55 #endif 56 56 if (sdev->clock) 57 - clk_disable(sdev->clock); 57 + clk_disable_unprepare(sdev->clock); 58 58 } 59 59 60 60 /* -----------------------------------------------------------------------------