diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-09-08 14:10:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 12:19:02 -0200 |
commit | db141a355d8914fe80c9e4a6c25c686f64d7e905 (patch) | |
tree | aa41ac6f2918978f5c6f9b645ec5161eea818383 /drivers/media/media-device.c | |
parent | 9033b1a47038fdba388fc13613de23508dccb075 (diff) | |
download | linux-stable-db141a355d8914fe80c9e4a6c25c686f64d7e905.tar.gz linux-stable-db141a355d8914fe80c9e4a6c25c686f64d7e905.tar.bz2 linux-stable-db141a355d8914fe80c9e4a6c25c686f64d7e905.zip |
[media] media-entity: init pads on entity init if was registered before
If an entity is registered with a media device before is initialized
with media_device_register_entity(), the number of pads won't be set
so media_device_register_entity() won't create pad objects and add
it to the media device pads list.
Do this at entity initialization time if the entity was registered
before so the graph is complete and correct regardless of the order
in which the entities are initialized and registered.
Suggested-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.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