From d867be1cc4fe32a19b4fa54f3ae4357d2ad9a57c Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Wed, 15 Feb 2012 10:33:20 -0300 Subject: [PATCH] [media] media: video: mx2_camera.c: Provide error message if clk_get fails Provide error message if clk_get fails. Signed-off-by: Fabio Estevam Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/mx2_camera.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c index 06675125f838..0ebda71ccbb3 100644 --- a/drivers/media/video/mx2_camera.c +++ b/drivers/media/video/mx2_camera.c @@ -1424,6 +1424,7 @@ static int __devinit mx2_camera_probe(struct platform_device *pdev) pcdev->clk_csi = clk_get(&pdev->dev, NULL); if (IS_ERR(pcdev->clk_csi)) { + dev_err(&pdev->dev, "Could not get csi clock\n"); err = PTR_ERR(pcdev->clk_csi); goto exit_kfree; } -- 2.20.1