summaryrefslogtreecommitdiff
path: root/drivers/media/video
diff options
context:
space:
mode:
authorSheng Nan <b38800@freescale.com>2013-03-01 10:26:58 +0800
committerJason Liu <r64343@freescale.com>2013-03-12 12:26:45 +0800
commit6b0a7412ee126c2501699f5be23492a604561b87 (patch)
tree7f7a05117f653b24c94b0273c6b77470210158ce /drivers/media/video
parentae74bc16247b129b6c7d265804bb713eb7fdf398 (diff)
downloadlinux-6b0a7412ee126c2501699f5be23492a604561b87.tar.gz
ENGR00252071-2: mxc_v4l2_capture: ov5640_mipi: update probe print information
Because ov5642 and ov5640 changes the probe information due to auto detect, ov5640_mipi should keep the same. - Add found information to tell user ov5640_mipi is found. - Use the same "not found" information as ov5642/ov5640. Signed-off-by: Sheng Nan <b38800@freescale.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/mxc/capture/ov5640_mipi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/mxc/capture/ov5640_mipi.c b/drivers/media/video/mxc/capture/ov5640_mipi.c
index d2b79d2162be..04f5ee73b5b9 100644
--- a/drivers/media/video/mxc/capture/ov5640_mipi.c
+++ b/drivers/media/video/mxc/capture/ov5640_mipi.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -1936,13 +1936,13 @@ static int ov5640_probe(struct i2c_client *client,
retval = ov5640_read_reg(OV5640_CHIP_ID_HIGH_BYTE, &chip_id_high);
if (retval < 0 || chip_id_high != 0x56) {
- pr_err("%s:cannot find camera\n", __func__);
+ pr_warning("camera ov5640_mipi is not found\n");
retval = -ENODEV;
goto err4;
}
retval = ov5640_read_reg(OV5640_CHIP_ID_LOW_BYTE, &chip_id_low);
if (retval < 0 || chip_id_low != 0x40) {
- pr_err("%s:cannot find camera\n", __func__);
+ pr_warning("camera ov5640_mipi is not found\n");
retval = -ENODEV;
goto err4;
}
@@ -1955,6 +1955,7 @@ static int ov5640_probe(struct i2c_client *client,
ov5640_int_device.priv = &ov5640_data;
retval = v4l2_int_device_register(&ov5640_int_device);
+ pr_info("camera ov5640_mipi is found\n");
return retval;
err4: