diff options
author | Yuxi <b36102@freescale.com> | 2011-11-03 10:25:54 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:04:15 +0800 |
commit | 8b27cfcecd5b911a4b3de116b178be6f66a3d68c (patch) | |
tree | d1eb8b869acb5a86b184261f5e830b6ea83c4d7f /drivers | |
parent | 2be5bafd5d4bee5fce1bb7e1b33af4ac49c56057 (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')
-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); |