]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: diolan-u2c: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 12:52:21 +0000 (13:52 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 9 Mar 2026 11:58:56 +0000 (12:58 +0100)
commit32dbfb4dbc2a546a6514f1f56152170683778ab4
treef17dca63a8a170f44c2534e2d9fbc683ff1eb6c3
parent7bc4c8f3469284a499febb73dbca7183ff53c98c
i2c: diolan-u2c: 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: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/busses/i2c-diolan-u2c.c