aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuxi <b36102@freescale.com>2011-11-03 10:25:54 +0800
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:39:00 +0800
commit00bf363ca99d5ce160ad506e5723d7ffdf0589f1 (patch)
treee3fa220f561fee15afa2961b2c4aae9285c27f9c
parent21394e9b5f07cdf5cdca7570a7e1fffd37f6f5fb (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>
-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 90066d5f14b..229e3f6fe42 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);