]> git.baikalelectronics.ru Git - kernel.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)
commit5de9d0bde03045d04b0767905f058473b0c47b55
treed320097f9a8ba2ca65606f15ea41279471e8c42c
parentd9fa57fd0a406f04335fe843af49a09e62c3f35e
[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