summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorYuxi <b36102@freescale.com>2011-11-03 10:25:54 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 21:04:15 +0800
commit8b27cfcecd5b911a4b3de116b178be6f66a3d68c (patch)
treed1eb8b869acb5a86b184261f5e830b6ea83c4d7f /drivers/media
parent2be5bafd5d4bee5fce1bb7e1b33af4ac49c56057 (diff)
ENGR00161300 MXC V4L2 capture: fix build warning
fix build warning: > drivers/media/video/mxc/capture/mxc_v4l2_capture.c:2457: warning: > comparison between pointer and integer Signed-off-by: Yuxi Sun <b36102@freescale.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/mxc/capture/mxc_v4l2_capture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mxc/capture/mxc_v4l2_capture.c b/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
index 90066d5f14bd..229e3f6fe42c 100644
--- a/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
+++ b/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
@@ -2454,7 +2454,7 @@ static void init_camera_struct(cam_data *cam, struct platform_device *pdev)
cam->ipu = ipu_get_soc(0);
if (cam->ipu == NULL)
pr_err("ERROR: v4l2 capture: failed to get ipu\n");
- else if (cam->ipu == -ENODEV)
+ else if (cam->ipu == ERR_PTR(-ENODEV))
pr_err("ERROR: v4l2 capture: get invalid ipu\n");
init_MUTEX(&cam->param_lock);