]> git.baikalelectronics.ru Git - kernel.git/commit
media: vsp1: Don't open-code vb2_fop_release()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 18 Mar 2022 18:01:03 +0000 (19:01 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:21 +0000 (11:02 +0200)
commit142ec8604badc5c664297c14d1562a74311fb131
tree38f1554fd4b3ff57c9f42e397a03b52f46f56bcc
parent71cec5224c2b7558a2f125895adacab094847de2
media: vsp1: Don't open-code vb2_fop_release()

Use the vb2_fop_release() helper to replace the open-coded version. The
video->lock is assigned to the queue lock, used by vb2_fop_release(), so
the only functional difference is that v4l2_fh_release() is now called
before vsp1_device_put(). This should be harmless.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/renesas/vsp1/vsp1_video.c