aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/vimc/vimc-common.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-02-21 08:37:42 -0500
committerMauro Carvalho Chehab <[email protected]>2019-03-19 13:24:28 -0400
commit0e43734d4c46e156785bb1d2acc5b3c10b7d5dd5 (patch)
tree803de4b1d91f85ebe8ab9153bdad7a26f7a1c1b4 /drivers/media/platform/vimc/vimc-common.c
parentea6c7e34f3b28e165988aa7391310752969842e8 (diff)
media: v4l2-subdev: add release() internal op
If the subdevice created a device node, then the v4l2_subdev cannot be freed until the last user of the device node closes it. This means that we need a release() callback in v4l2_subdev_internal_ops that is called from the video_device release function so the subdevice driver can postpone freeing memory until the that callback is called. If no video device node was created then the release callback can be called immediately when the subdev is unregistered. Signed-off-by: Hans Verkuil <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.c')
0 files changed, 0 insertions, 0 deletions