misc: enclosure: Fix doc for enclosure_find()
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 15 Dec 2022 09:08:04 +0000 (13:08 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 12:06:50 +0000 (13:06 +0100)
commitf5b29c7a4df1dafd79ee7c0b1084b75afbe0ff60
treecc2626513ac04b403a5e3f598fea260e628ec973
parent4b8659e2c258e4fdac9ccdf06cc20c0677894ef9
misc: enclosure: Fix doc for enclosure_find()

We should use put_device() to release the reference.

Fixes: ee959b00c335 ("SCSI: convert struct class_device to struct device")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20221215090804.473022-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/enclosure.c