diff options
author | David S. Miller <davem@davemloft.net> | 2008-12-05 01:06:52 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-05 17:08:23 -0800 |
commit | 06c0db7221de09cdf1d5dd2ce2780cc3361ad9f9 (patch) | |
tree | 83ebae7f988d3a26fecbe1b0cd66430e995cad02 /arch/sparc | |
parent | 59966e3b4e9e6573b352301ad0ceed15196d4e2d (diff) | |
download | kernel_samsung_tuna-06c0db7221de09cdf1d5dd2ce2780cc3361ad9f9.zip kernel_samsung_tuna-06c0db7221de09cdf1d5dd2ce2780cc3361ad9f9.tar.gz kernel_samsung_tuna-06c0db7221de09cdf1d5dd2ce2780cc3361ad9f9.tar.bz2 |
sparc: Make sparc32's create_node() assign parent pointer.
This makes it match what sparc64's version does.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/prom_32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/kernel/prom_32.c b/arch/sparc/kernel/prom_32.c index a6809bc..5818aa9 100644 --- a/arch/sparc/kernel/prom_32.c +++ b/arch/sparc/kernel/prom_32.c @@ -210,7 +210,7 @@ static char * __init get_one_property(phandle node, const char *name) return buf; } -static struct device_node * __init create_node(phandle node) +static struct device_node * __init create_node(phandle node, struct device_node *parent) { struct device_node *dp; @@ -219,6 +219,7 @@ static struct device_node * __init create_node(phandle node) dp = prom_early_alloc(sizeof(*dp)); dp->unique_id = prom_unique_id++; + dp->parent = parent; kref_init(&dp->kref); @@ -237,7 +238,7 @@ static struct device_node * __init build_tree(struct device_node *parent, phandl { struct device_node *dp; - dp = create_node(node); + dp = create_node(node, parent); if (dp) { *(*nextp) = dp; *nextp = &dp->allnext; @@ -387,7 +388,7 @@ void __init prom_build_devicetree(void) { struct device_node **nextp; - allnodes = create_node(prom_root_node); + allnodes = create_node(prom_root_node, NULL); allnodes->path_component_name = ""; allnodes->full_name = "/"; |