diff options
author | Maxime Ripard | 2019-03-15 10:22:47 +0100 |
---|---|---|
committer | Rob Herring | 2019-04-10 09:03:03 -0500 |
commit | deb387d4af5a4be3b656b5d69ae4d87ccee325b8 (patch) | |
tree | 423c10d73dfeb2b27c276ce6c06ac4a62fc20498 /drivers/of | |
parent | 99838f011a3a8fcfbda526bb17b2905e07288808 (diff) |
of: property: Document that of_graph_get_endpoint_by_regs needs of_node_put
The node returned by of_graph_get_endpoint_by_regs has a reference taken,
and we need to put that reference back when done with the node.
However, the documentation for that node doesn't mention it, so let's make
sure it does.
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/property.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c index 8631efa1daa1..d7fa75e31f22 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -659,7 +659,7 @@ EXPORT_SYMBOL(of_graph_get_next_endpoint); * * Return: An 'endpoint' node pointer which is identified by reg and at the same * is the child of a port node identified by port_reg. reg and port_reg are - * ignored when they are -1. + * ignored when they are -1. Use of_node_put() on the pointer when done. */ struct device_node *of_graph_get_endpoint_by_regs( const struct device_node *parent, int port_reg, int reg) |