aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/s3c_camera_driver.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/video/s3c_camera_driver.c b/drivers/media/video/s3c_camera_driver.c
index 3be273494d5..da376c4ee68 100644
--- a/drivers/media/video/s3c_camera_driver.c
+++ b/drivers/media/video/s3c_camera_driver.c
@@ -1749,6 +1749,7 @@ static int s3c_camif_probe(struct platform_device *pdev)
{
struct resource *res;
camif_cfg_t *codec, *preview;
+ struct clk *camif_clock;
/* Initialize fimc objects */
codec = s3c_camif_get_fimc_object(CODEC_MINOR);
@@ -1795,6 +1796,14 @@ static int s3c_camif_probe(struct platform_device *pdev)
PHYS_OFFSET + (MEM_SIZE - RESERVED_MEM) + YUV_MEM;
preview->pp_virt_buf = ioremap_nocache(preview->pp_phys_buf, RGB_MEM);
+ camif_clock = clk_get(&pdev->dev, "camif");
+ if (IS_ERR(camif_clock)) {
+ dev_err(&pdev->dev,
+ "Failed to find camera interface clock source\n");
+ return PTR_ERR(cam_clock);
+ }
+ clk_enable(camif_clock);
+
/* Device init */
s3c_camif_init();
s3c_camif_init_codec(codec);