From: Philipp Zabel Date: Thu, 15 Mar 2012 18:13:31 +0000 (-0300) Subject: [media] V4L: pxa_camera: add clk_prepare/clk_unprepare calls X-Git-Tag: v3.5-rc5~26^2~561 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91acd962301af86d5af02ddefdb8147322a0b9b0;p=platform%2Fkernel%2Flinux-exynos.git [media] V4L: pxa_camera: add clk_prepare/clk_unprepare calls This patch adds clk_prepare/clk_unprepare calls to the pxa_camera driver by using the helper functions clk_prepare_enable and clk_disable_unprepare. Signed-off-by: Philipp Zabel Cc: Mauro Carvalho Chehab Cc: Guennadi Liakhovetski Cc: Robert Jarzmik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index 0bd7da2..5a413f4 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c @@ -921,12 +921,12 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev) /* "Safe default" - 13MHz */ recalculate_fifo_timeout(pcdev, 13000000); - clk_enable(pcdev->clk); + clk_prepare_enable(pcdev->clk); } static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev) { - clk_disable(pcdev->clk); + clk_disable_unprepare(pcdev->clk); } static irqreturn_t pxa_camera_irq(int irq, void *data)