summaryrefslogtreecommitdiffstats
path: root/drivers/of/fdt.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-04-13 03:30:20 +0200
committerGrant Likely <grant.likely@linaro.org>2015-06-04 07:49:19 +0200
commitce32f859646bab2ed724393398b90aa50149bb44 (patch)
tree84c180593c0a8d2b8633b0de8b93131a39eb34c4 /drivers/of/fdt.c
parentof: return NUMA_NO_NODE from fallback of_node_to_nid() (diff)
downloadlinux-ce32f859646bab2ed724393398b90aa50149bb44.tar.xz
linux-ce32f859646bab2ed724393398b90aa50149bb44.zip
of/fdt: fix argument name and add comments of unflatten_dt_node()
Match the name of the third argument in the comment block to the actual function: p -> poffset Add missing comments about the arguments "nodepp" and "dryrun". Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r--drivers/of/fdt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index cde35c5d0191..293f80bd83dd 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -164,9 +164,12 @@ static void *unflatten_dt_alloc(void **mem, unsigned long size,
* unflatten_dt_node - Alloc and populate a device_node from the flat tree
* @blob: The parent device tree blob
* @mem: Memory chunk to use for allocating device nodes and properties
- * @p: pointer to node in flat tree
+ * @poffset: pointer to node in flat tree
* @dad: Parent struct device_node
+ * @nodepp: The device_node tree created by the call
* @fpsize: Size of the node path up at the current depth.
+ * @dryrun: If true, do not allocate device nodes but still calculate needed
+ * memory size
*/
static void * unflatten_dt_node(void *blob,
void *mem,