Skip to contentSkip to conversation

misc: enclosure: Fix doc for enclosure_find()

PATCH New Miaoqian Lin 1 participant 1 message Dec 15, 2022 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/misc/enclosure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/enclosure.c +1 -1
index 1b010d9267c9..4ba966529458 100644
@@ -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
Signature · 1 line
2.25.1