Skip to content

Commit 5c4dfc8

Browse files
Fabio EstevamMauro Carvalho Chehab
authored andcommitted
[media] video: mx1_camera: Use clk_prepare_enable/clk_disable_unprepare
Prepare the clock before enabling it. Cc: Guennadi Liakhovetski <[email protected]> Cc: <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 1690d86 commit 5c4dfc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/video/mx1_camera.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static void mx1_camera_activate(struct mx1_camera_dev *pcdev)
403403

404404
dev_dbg(pcdev->icd->parent, "Activate device\n");
405405

406-
clk_enable(pcdev->clk);
406+
clk_prepare_enable(pcdev->clk);
407407

408408
/* enable CSI before doing anything else */
409409
__raw_writel(csicr1, pcdev->base + CSICR1);
@@ -422,7 +422,7 @@ static void mx1_camera_deactivate(struct mx1_camera_dev *pcdev)
422422
/* Disable all CSI interface */
423423
__raw_writel(0x00, pcdev->base + CSICR1);
424424

425-
clk_disable(pcdev->clk);
425+
clk_disable_unprepare(pcdev->clk);
426426
}
427427

428428
/*

0 commit comments

Comments
 (0)