Skip to content

Commit

Permalink
[media] media: video: mx2_camera.c: Provide error message if clk_get …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Fabio Estevam authored and Mauro Carvalho Chehab committed Mar 8, 2012
1 parent 560fab6 commit d867be1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d867be1

Please sign in to comment.