[media] v4l: vsp1: Check if an entity is a subdev with the right function
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 1 Mar 2016 09:27:10 +0000 (06:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 5 Mar 2016 12:09:12 +0000 (09:09 -0300)
Use is_media_entity_v4l2_subdev() instead of is_media_entity_v4l2_io()
to check whether the entity is a subdev.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_video.c

index 61ee0f92c1e5c95fd6607b0d6836d98951e01880..72cc7d3729f8d7a1e41bf49c0145c95217f20d8b 100644 (file)
@@ -289,7 +289,7 @@ static int vsp1_video_pipeline_validate(struct vsp1_pipeline *pipe,
                struct vsp1_rwpf *rwpf;
                struct vsp1_entity *e;
 
-               if (is_media_entity_v4l2_io(entity))
+               if (!is_media_entity_v4l2_subdev(entity))
                        continue;
 
                subdev = media_entity_to_v4l2_subdev(entity);