Skip to content

Commit f18caf2

Browse files
Yuuoniygregkh
authored andcommitted
device property: Fix documentation for fwnode_get_next_parent()
Use fwnode_handle_put() on the node pointer to release the refcount. Change fwnode_handle_node() to fwnode_handle_put(). Fixes: 2338725 ("device property: Add fwnode_get_next_parent()") Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Daniel Scally <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Miaoqian Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 47446b5 commit f18caf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/property.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ EXPORT_SYMBOL_GPL(fwnode_get_parent);
609609
* node's parents.
610610
*
611611
* Returns a node pointer with refcount incremented, use
612-
* fwnode_handle_node() on it when done.
612+
* fwnode_handle_put() on it when done.
613613
*/
614614
struct fwnode_handle *fwnode_get_next_parent(struct fwnode_handle *fwnode)
615615
{

0 commit comments

Comments
 (0)