diff options
author | Yuxi <b36102@freescale.com> | 2011-11-03 10:25:54 +0800 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2012-07-03 16:55:05 -0400 |
commit | 690ec0ab45041fbe91d7781527118dbeddb1f7ad (patch) | |
tree | d1eb8b869acb5a86b184261f5e830b6ea83c4d7f /drivers/media | |
parent | 685565dca63b6f673ef3a149a71cfba0b2a1231a (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.c | 2 |
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); |