]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
greybus: es2: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Wed, 11 Mar 2026 08:22:26 +0000 (09:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 13:55:01 +0000 (15:55 +0200)
commit6597a08dbd825fadf0da2e2552358dd95776c8dd
tree14031a7a45de883b7951cc59eb167a608e4c98c9
parentcbc96a916b1a3be7039b0166c0fc56ec1632ba01
greybus: es2: 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>
Link: https://patch.msgid.link/20260311082226.14865-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/greybus/es2.c