media: ti-vpe: cal: Add context V4L2 cleanup and unregister functions
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Jul 2020 18:36:16 +0000 (20:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 07:33:09 +0000 (09:33 +0200)
commit19a2374068b557ed1a19c68ebaef5f1a161e2973
tree486396dbc3928aef37df16e9347fb381d6cc3bd8
parentd68a94e98a89230750b8dfb667c71c3b4e0a02ed
media: ti-vpe: cal: Add context V4L2 cleanup and unregister functions

Create cal_ctx_v4l2_unregister() and cal_ctx_v4l2_cleanup() functions to
unregister and cleanup the V4L2-related objects from the context, and
call them in cal_remove() and in the error path of cal_probe().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c