浏览代码

[media] v4l: vsp1: Check if an entity is a subdev with the right function

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>
Laurent Pinchart 9 年之前
父节点
当前提交
02650ebd2d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/media/platform/vsp1/vsp1_video.c

+ 1 - 1
drivers/media/platform/vsp1/vsp1_video.c

@@ -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);