]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] uvcvideo: create pad links after subdev registration
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 3 Sep 2015 11:46:06 +0000 (08:46 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:18:46 +0000 (12:18 -0200)
commitc5a98cac6ecd78ca647c41cb25e3ea1835579d70
treed320097f9a8ba2ca65606f15ea41279471e8c42c
parentc7621b3044f705dd20019e82a8418491b8080327
[media] uvcvideo: create pad links after subdev registration

The uvc driver creates the pads links before the media entity is
registered with the media device. This doesn't work now that obj
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_entity.c