]> git.hungrycats.org Git - linux/commit
mfd: viperboard: Drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:40:51 +0000 (11:40 +0100)
committerLee Jones <lee@kernel.org>
Wed, 25 Mar 2026 12:45:18 +0000 (12:45 +0000)
commit1a408a67788867222e9a18910d582e534523c7d3
tree7dbaeab656c05c2527fe211a8465fb81f2ae427d
parenta2753f06e3e448023280189ca3ebd1b46d427263
mfd: viperboard: 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/20260305104051.15727-1-johan@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/viperboard.c