Skip to content

Commit 3a4cdef

Browse files
vaishnavachathmchehab
authored andcommitted
media: v4l2-mc: Drop subdev check in v4l2_create_fwnode_links_to_pad()
While updating v4l2_create_fwnode_links_to_pad() to accept non-subdev sinks, the check is_media_entity_v4l2_subdev() was not removed which prevented the function from being used with non-subdev sinks, Drop the unnecessary check. Fixes: bd5a03b ("media: Accept non-subdev sinks in v4l2_create_fwnode_links_to_pad()") Signed-off-by: Vaishnav Achath <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent a05e9aa commit 3a4cdef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/media/v4l2-core/v4l2-mc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ int v4l2_create_fwnode_links_to_pad(struct v4l2_subdev *src_sd,
314314
{
315315
struct fwnode_handle *endpoint;
316316

317-
if (!(sink->flags & MEDIA_PAD_FL_SINK) ||
318-
!is_media_entity_v4l2_subdev(sink->entity))
317+
if (!(sink->flags & MEDIA_PAD_FL_SINK))
319318
return -EINVAL;
320319

321320
fwnode_graph_for_each_endpoint(dev_fwnode(src_sd->dev), endpoint) {

0 commit comments

Comments
 (0)