OSDN Git Service

of: property: Document that of_graph_get_endpoint_by_regs needs of_node_put
authorMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 15 Mar 2019 09:22:47 +0000 (10:22 +0100)
committerRob Herring <robh@kernel.org>
Wed, 10 Apr 2019 14:03:03 +0000 (09:03 -0500)
commitdeb387d4af5a4be3b656b5d69ae4d87ccee325b8
tree423c10d73dfeb2b27c276ce6c06ac4a62fc20498
parent99838f011a3a8fcfbda526bb17b2905e07288808
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>
drivers/of/property.c