aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/lparcfg.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-23 23:50:55 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-24 08:08:59 -0400
commit8c8dc322486d5394dc981bef9276dd0ce6c8d1ce (patch)
tree2275c19196414da08a3834c4b56a1da72e1e3715 /arch/powerpc/kernel/lparcfg.c
parent112466b4d0036b3244509d01dbbf3c8caec52a23 (diff)
[POWERPC] Remove old interface find_path_device
Replaced by of_find_node_by_path. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/lparcfg.c')
-rw-r--r--arch/powerpc/kernel/lparcfg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c
index b8dc1eeb0169..fc1f7a949b2b 100644
--- a/arch/powerpc/kernel/lparcfg.c
+++ b/arch/powerpc/kernel/lparcfg.c
@@ -321,7 +321,7 @@ static int pseries_lparcfg_data(struct seq_file *m, void *v)
321 struct device_node *rtas_node; 321 struct device_node *rtas_node;
322 const int *lrdrp = NULL; 322 const int *lrdrp = NULL;
323 323
324 rtas_node = find_path_device("/rtas"); 324 rtas_node = of_find_node_by_path("/rtas");
325 if (rtas_node) 325 if (rtas_node)
326 lrdrp = of_get_property(rtas_node, "ibm,lrdr-capacity", NULL); 326 lrdrp = of_get_property(rtas_node, "ibm,lrdr-capacity", NULL);
327 327
@@ -330,6 +330,7 @@ static int pseries_lparcfg_data(struct seq_file *m, void *v)
330 } else { 330 } else {
331 partition_potential_processors = *(lrdrp + 4); 331 partition_potential_processors = *(lrdrp + 4);
332 } 332 }
333 of_node_put(rtas_node);
333 334
334 partition_active_processors = lparcfg_count_active_processors(); 335 partition_active_processors = lparcfg_count_active_processors();
335 336
@@ -537,7 +538,7 @@ static int lparcfg_data(struct seq_file *m, void *v)
537 538
538 seq_printf(m, "%s %s \n", MODULE_NAME, MODULE_VERS); 539 seq_printf(m, "%s %s \n", MODULE_NAME, MODULE_VERS);
539 540
540 rootdn = find_path_device("/"); 541 rootdn = of_find_node_by_path("/");
541 if (rootdn) { 542 if (rootdn) {
542 tmp = of_get_property(rootdn, "model", NULL); 543 tmp = of_get_property(rootdn, "model", NULL);
543 if (tmp) { 544 if (tmp) {
@@ -557,6 +558,7 @@ static int lparcfg_data(struct seq_file *m, void *v)
557 NULL); 558 NULL);
558 if (lp_index_ptr) 559 if (lp_index_ptr)
559 lp_index = *lp_index_ptr; 560 lp_index = *lp_index_ptr;
561 of_node_put(rootdn);
560 } 562 }
561 seq_printf(m, "serial_number=%s\n", system_id); 563 seq_printf(m, "serial_number=%s\n", system_id);
562 seq_printf(m, "system_type=%s\n", model); 564 seq_printf(m, "system_type=%s\n", model);