]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: video-i2c: use vb2_video_unregister_device on driver removal
authorArash Golgol <arash.golgol@gmail.com>
Sat, 9 May 2026 16:10:13 +0000 (19:40 +0330)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 12 May 2026 07:39:02 +0000 (09:39 +0200)
commit56384b486b80ce4a2bc93689aae49995f908f90d
tree91d43d331edb3b5fcd52343a5cac46e61f0a26f3
parent9724164f71974a2a44a5e026614fbcc05bab6d91
media: video-i2c: use vb2_video_unregister_device on driver removal

The driver uses vb2_fop_release() as its file release operation, so
vb2_video_unregister_device() should be used instead of
video_unregister_device() during driver removal.

This ensures that the vb2 queue is properly disconnected before the
video device is unregistered.

Signed-off-by: Arash Golgol <arash.golgol@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/video-i2c.c