diff mbox

[v2] mx2_camera: add informative camera clock frequency printout

Message ID 1282912745-15623-1-git-send-email-m.grzeschik@pengutronix.de (mailing list archive)
State Accepted
Headers show

Commit Message

Michael Grzeschik Aug. 27, 2010, 12:39 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c
index 61241af..a3e04b6 100644
--- a/drivers/media/video/mx2_camera.c
+++ b/drivers/media/video/mx2_camera.c
@@ -1415,6 +1415,9 @@  static int __devinit mx2_camera_probe(struct platform_device *pdev)
 	if (err)
 		goto exit_free_emma;
 
+	dev_info(&pdev->dev, "MX2 Camera (CSI) driver probed, clock frequency: %ld\n",
+			clk_get_rate(pcdev->clk_csi));
+
 	return 0;
 
 exit_free_emma: