summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-04-20 03:18:46 +0200
committerRob Herring <robh@kernel.org>2016-04-25 17:06:39 +0200
commit1c986e3643d278d93e9ca67b3c752f486cc32318 (patch)
treeeb0cc5b2ef5f08f0d602382127795993c173619a /drivers/of
parentDocumentation: dt: soc: fix spelling mistakes (diff)
downloadlinux-1c986e3643d278d93e9ca67b3c752f486cc32318.tar.xz
linux-1c986e3643d278d93e9ca67b3c752f486cc32318.zip
of: document refcount incrementation of of_get_cpu_node()
This function increments refcount. This is worth noting. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Frank Rowand <frank.rowand@am.sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index e87e21df19d8..116666b088cc 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -394,7 +394,8 @@ bool __weak arch_find_n_match_cpu_physical_id(struct device_node *cpun,
* before booting secondary cores. This function uses arch_match_cpu_phys_id
* which can be overridden by architecture specific implementation.
*
- * Returns a node pointer for the logical cpu if found, else NULL.
+ * Returns a node pointer for the logical cpu with refcount incremented, use
+ * of_node_put() on it when done. Returns NULL if not found.
*/
struct device_node *of_get_cpu_node(int cpu, unsigned int *thread)
{