[media] v4l: vsp1: create pad links after subdev registration
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 3 Sep 2015 14:20:34 +0000 (11:20 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:45 +0000 (12:18 -0200)
commit7213fe7eec174fb2b958ecc3ce04a6f811c2d4da
tree19f5cb64683b77c359a1662f7b74af10dddcc01c
parent5837ceea11ca11339e49947aacbccb62f3646993
[media] v4l: vsp1: create pad links after subdev registration

The vsp1 driver creates the pads links before the media entities are
registered with the media device. This doesn't work now that object
IDs are used to create links so the media_device has to be set.

Move entities registration logic before pads links creation.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_drv.c