]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00161300 MXC V4L2 capture: fix build warning
authorYuxi <b36102@freescale.com>
Thu, 3 Nov 2011 02:25:54 +0000 (10:25 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:53 +0000 (14:09 +0200)
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>
drivers/media/video/mxc/capture/mxc_v4l2_capture.c

index 90066d5f14bda85bcd6bed8b07e1bd13409a4e49..229e3f6fe42ccf4c421a08a01e0c50c77b27741c 100644 (file)
@@ -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);