V4L: pxa_camera: add clk_prepare/clk_unprepare calls
PATCH 1/1 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.
--- drivers/media/video/pxa_camera.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/media/video/pxa_camera.c +2 -2
@@ -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)
Signature · 1 line
1.7.9.1
Quoted 8 lines · Philipp Zabel
This patch adds clk_prepare/clk_unprepare calls to the
pxa_cameradriver by using the helper functionsclk_prepare_enableandclk_disable_unprepare.Signed-off-by Philipp Zabel <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Guennadi Liakhovetski <[email protected]>Cc Robert Jarzmik <[email protected]>
Certainly, clocks have to be prepared before being enabled AFAIK.
Cheers.
--
Robert
Hi Robert
Quoted 6 lines · Robert Jarzmik
Quoted 4 lines · Philipp Zabel
This patch adds clk_prepare/clk_unprepare calls to the
pxa_cameradriver by using the helper functionsclk_prepare_enableandclk_disable_unprepare.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Philipp Zabel <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Cc Guennadi Liakhovetski <[email protected]>Cc Robert Jarzmik <[email protected]>Certainly, clocks have to be prepared before being enabled AFAIK.
Acked-by Robert Jarzmik <[email protected]>
Thanks for the ack, but I've already pushed this patch up to Mauro. Now, only if he picks it up when pushing to Linus.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/