[media] media: video: mx2_camera.c: Provide error message if clk_get fails
authorFabio Estevam <festevam@gmail.com>
Wed, 15 Feb 2012 13:33:20 +0000 (10:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Mar 2012 13:04:39 +0000 (10:04 -0300)
Provide error message if clk_get fails.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx2_camera.c

index 0667512..0ebda71 100644 (file)
@@ -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;
        }