]> www.infradead.org Git - linux.git/commit
firewire: core: utilize kref to maintain fw_node with reference counting
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 1 Aug 2024 02:26:29 +0000 (11:26 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 1 Aug 2024 02:26:29 +0000 (11:26 +0900)
commit3593b38a1367c3b57e986b0d2a9b6ceb84ec44ce
treec83a8344c6b6a116c8c22dfaedbd45dd4f9d60f4
parent9b6ad6a0115e9a35da65abdc973b80539f983c26
firewire: core: utilize kref to maintain fw_node with reference counting

Current implementation directly uses refcount_t to maintain the life time
of fw_node, while kref is available for the same purpose.

This commit replaces the implementation with kref.

Link: https://lore.kernel.org/r/20240801022629.31857-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-topology.c
drivers/firewire/core.h