aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/fdt.c
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2011-03-17 20:32:35 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-03-23 16:55:56 -0400
commita7006c9747ef225ab070d96c054e85682a09a13e (patch)
tree7f4978336bd29eecbd18114b11ab78ba1f6b7e7a /drivers/of/fdt.c
parent1eed4c077c31450bfcd0249aebb21d96fc5d5d3c (diff)
of/flattree: minor cleanups
- static-ize some functions - add some additional comments Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r--drivers/of/fdt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index af824e7e0367..c9db49c10f45 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -139,12 +139,13 @@ static void *unflatten_dt_alloc(unsigned long *mem, unsigned long size,
139/** 139/**
140 * unflatten_dt_node - Alloc and populate a device_node from the flat tree 140 * unflatten_dt_node - Alloc and populate a device_node from the flat tree
141 * @blob: The parent device tree blob 141 * @blob: The parent device tree blob
142 * @mem: Memory chunk to use for allocating device nodes and properties
142 * @p: pointer to node in flat tree 143 * @p: pointer to node in flat tree
143 * @dad: Parent struct device_node 144 * @dad: Parent struct device_node
144 * @allnextpp: pointer to ->allnext from last allocated device_node 145 * @allnextpp: pointer to ->allnext from last allocated device_node
145 * @fpsize: Size of the node path up at the current depth. 146 * @fpsize: Size of the node path up at the current depth.
146 */ 147 */
147unsigned long unflatten_dt_node(struct boot_param_header *blob, 148static unsigned long unflatten_dt_node(struct boot_param_header *blob,
148 unsigned long mem, 149 unsigned long mem,
149 unsigned long *p, 150 unsigned long *p,
150 struct device_node *dad, 151 struct device_node *dad,
@@ -230,6 +231,7 @@ unsigned long unflatten_dt_node(struct boot_param_header *blob,
230 } 231 }
231 kref_init(&np->kref); 232 kref_init(&np->kref);
232 } 233 }
234 /* process properties */
233 while (1) { 235 while (1) {
234 u32 sz, noff; 236 u32 sz, noff;
235 char *pname; 237 char *pname;
@@ -351,7 +353,7 @@ unsigned long unflatten_dt_node(struct boot_param_header *blob,
351 * @dt_alloc: An allocator that provides a virtual address to memory 353 * @dt_alloc: An allocator that provides a virtual address to memory
352 * for the resulting tree 354 * for the resulting tree
353 */ 355 */
354void __unflatten_device_tree(struct boot_param_header *blob, 356static void __unflatten_device_tree(struct boot_param_header *blob,
355 struct device_node **mynodes, 357 struct device_node **mynodes,
356 void * (*dt_alloc)(u64 size, u64 align)) 358 void * (*dt_alloc)(u64 size, u64 align))
357{ 359{