diff options
author | Fabio Estevam <festevam@gmail.com> | 2012-02-15 14:33:20 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 14:04:39 +0100 |
commit | d867be1cc4fe32a19b4fa54f3ae4357d2ad9a57c (patch) | |
tree | e4c0cbddfd867bc3710c263ec2a8a71259331ed4 /drivers/media/video/mx2_camera.c | |
parent | [media] media: i.MX27 camera: more efficient discard buffer handling (diff) | |
download | linux-d867be1cc4fe32a19b4fa54f3ae4357d2ad9a57c.tar.xz linux-d867be1cc4fe32a19b4fa54f3ae4357d2ad9a57c.zip |
[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 <fabio.estevam@freescale.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mx2_camera.c')
-rw-r--r-- | drivers/media/video/mx2_camera.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |