mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-21 20:22:13 +08:00
misc: enclosure: Fix doc for enclosure_find()
We should use put_device() to release the reference.
Fixes: ee959b00c3
("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>
This commit is contained in:
parent
4b8659e2c2
commit
f5b29c7a4d
@ -32,7 +32,7 @@ static struct class enclosure_class;
|
||||
* found. @start can be used as a starting point to obtain multiple
|
||||
* enclosures per parent (should begin with NULL and then be set to
|
||||
* each returned enclosure device). Obtains a reference to the
|
||||
* enclosure class device which must be released with device_put().
|
||||
* enclosure class device which must be released with put_device().
|
||||
* If @start is not NULL, a reference must be taken on it which is
|
||||
* released before returning (this allows a loop through all
|
||||
* enclosures to exit with only the reference on the enclosure of
|
||||
|
Loading…
Reference in New Issue
Block a user