diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-03-01 04:27:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-05 07:09:12 -0500 |
commit | 02650ebd2d306b661e6ad000e7981c7d8544f8f6 (patch) | |
tree | ebf59096062cbc686e5190ac849bc2ab7b407007 | |
parent | 0a82edd011f5cd3de1eded8fe1d78cef370b2083 (diff) |
[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>
-rw-r--r-- | drivers/media/platform/vsp1/vsp1_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index 61ee0f92c1e5..72cc7d3729f8 100644 --- a/drivers/media/platform/vsp1/vsp1_video.c +++ b/drivers/media/platform/vsp1/vsp1_video.c | |||
@@ -289,7 +289,7 @@ static int vsp1_video_pipeline_validate(struct vsp1_pipeline *pipe, | |||
289 | struct vsp1_rwpf *rwpf; | 289 | struct vsp1_rwpf *rwpf; |
290 | struct vsp1_entity *e; | 290 | struct vsp1_entity *e; |
291 | 291 | ||
292 | if (is_media_entity_v4l2_io(entity)) | 292 | if (!is_media_entity_v4l2_subdev(entity)) |
293 | continue; | 293 | continue; |
294 | 294 | ||
295 | subdev = media_entity_to_v4l2_subdev(entity); | 295 | subdev = media_entity_to_v4l2_subdev(entity); |