From: Fabio Estevam Date: Wed, 15 Feb 2012 13:33:20 +0000 (-0300) Subject: [media] media: video: mx2_camera.c: Provide error message if clk_get fails X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d867be1cc4fe32a19b4fa54f3ae4357d2ad9a57c;p=linux-beck.git [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 --- 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; }