]> git.ipfire.org Git - thirdparty/linux.git/commit
media: usbtv: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:39:19 +0000 (11:39 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 16 Mar 2026 15:30:20 +0000 (16:30 +0100)
commitdbc6798b80481a20f9aff671bc4d529eae63c9e8
treeb3b9e4a50e6e190595e563afbb53dd57a6b00522
parent64f47fca95c307c569adb7fec48ffc2891e3b209
media: usbtv: drop redundant device reference

Driver core holds a reference to the USB interface and its parent USB
device while the interface is bound to a driver and there is no need to
take additional references unless the structures are needed after
disconnect.

Drop the redundant device reference to reduce cargo culting, make it
easier to spot drivers where an extra reference is needed, and reduce
the risk of memory leaks when drivers fail to release it.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/usb/usbtv/usbtv-core.c