[media] v4l: vsp1: Base link creation on availability of entities
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 13 May 2016 16:04:51 +0000 (13:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 15:10:05 +0000 (12:10 -0300)
Check the entity pointer instead of the feature flag to see if the
entity is available before creating related links. The two methods are
currently equivalent, but will differ in the future as we implement
support for ignoring some of the entities present in the hardware.

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

index 70e7a81e82551a0b52f40c7a86cc8fdf9785d286..7e3b9da5aa11ef215cc20cfc9f80948709c28cf7 100644 (file)
@@ -147,7 +147,7 @@ static int vsp1_uapi_create_links(struct vsp1_device *vsp1)
                        return ret;
        }
 
-       if (vsp1->info->features & VSP1_HAS_LIF) {
+       if (vsp1->lif) {
                ret = media_create_pad_link(&vsp1->wpf[0]->entity.subdev.entity,
                                            RWPF_PAD_SOURCE,
                                            &vsp1->lif->entity.subdev.entity,
This page took 0.02726 seconds and 5 git commands to generate.