OSDN Git Service

media: imx: Clean capture unregister
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 4 Jan 2021 20:34:41 +0000 (21:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 Jan 2021 17:07:31 +0000 (18:07 +0100)
commit7c720d77aae38b79f5bc3a0e0c82dcf8139aaf07
tree4c8411aee0dca996c9af09aea9fe22aecaaf365d
parent89b14485caa4b7b2eaf70be0064f0978e68ebeee
media: imx: Clean capture unregister

No locking is needed to call video_unregister_device(). Drop it.

Also, drop the superfluous video_is_registered() call, which is
done by video_unregister_device(), and re-order media_entity_cleanup()
and video_unregister_device() calls.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx-media-capture.c