diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-12-15 10:08:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-20 13:06:50 +0100 |
commit | f5b29c7a4df1dafd79ee7c0b1084b75afbe0ff60 (patch) | |
tree | cc2626513ac04b403a5e3f598fea260e628ec973 /drivers/misc/enclosure.c | |
parent | mei: bus-fixup:upon error print return values of send and receive (diff) | |
download | linux-f5b29c7a4df1dafd79ee7c0b1084b75afbe0ff60.tar.xz linux-f5b29c7a4df1dafd79ee7c0b1084b75afbe0ff60.zip |
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>
Diffstat (limited to 'drivers/misc/enclosure.c')
-rw-r--r-- | drivers/misc/enclosure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c index 1b010d9267c9..4ba966529458 100644 --- a/drivers/misc/enclosure.c +++ b/drivers/misc/enclosure.c @@ -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 |