summaryrefslogtreecommitdiff
path: root/drivers/media/media-device.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-12-28 02:45:00 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 17:19:16 +0300
commitbdf5c198261cdda8dcc5375315afe9d8bf4d77d1 (patch)
treea2d03d22a55622de972b1d75b449babd408dd00c /drivers/media/media-device.c
parent9f80679511b0544d1ed8c9bc2d80030183e9f1ed (diff)
downloadlinux-bdf5c198261cdda8dcc5375315afe9d8bf4d77d1.tar.xz
[media] v4l2-device: Register entity before calling subdev's registered ops
Registering a V4L2 sub-device includes, among other things, registering the related media entity and calling the sub-device's registered op. Since patch "media: convert links from array to list", creating a link between two pads requires registering the entity first. If the registered() op involves link creation, the link list head will not be initialised before it is used. Resolve this by first registering the entity, then calling its registered() op. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/media-device.c')
0 files changed, 0 insertions, 0 deletions