diff options
author | Fabio Estevam <festevam@gmail.com> | 2012-02-15 10:33:20 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 10:04:39 -0300 |
commit | d867be1cc4fe32a19b4fa54f3ae4357d2ad9a57c (patch) | |
tree | e4c0cbddfd867bc3710c263ec2a8a71259331ed4 /drivers | |
parent | 560fab62fa0f4bc332e1a84fb2dfdb5ae5dc7581 (diff) |
[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')
-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 06675125f83..0ebda71ccbb 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; } |