aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/52xx/efika-setup.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/52xx/efika-setup.c b/arch/powerpc/platforms/52xx/efika-setup.c
index d61ce84e201f..b6945cbbfba6 100644
--- a/arch/powerpc/platforms/52xx/efika-setup.c
+++ b/arch/powerpc/platforms/52xx/efika-setup.c
@@ -42,14 +42,13 @@ static void efika_show_cpuinfo(struct seq_file *m)
42 const char *codegenvendor = NULL; 42 const char *codegenvendor = NULL;
43 43
44 root = of_find_node_by_path("/"); 44 root = of_find_node_by_path("/");
45 if (root) { 45 if (!root)
46 revision = get_property(root, "revision", NULL); 46 return;
47 codegendescription =
48 get_property(root, "CODEGEN,description", NULL);
49 codegenvendor = get_property(root, "CODEGEN,vendor", NULL);
50 47
51 of_node_put(root); 48 revision = get_property(root, "revision", NULL);
52 } 49 codegendescription =
50 get_property(root, "CODEGEN,description", NULL);
51 codegenvendor = get_property(root, "CODEGEN,vendor", NULL);
53 52
54 if (codegendescription) 53 if (codegendescription)
55 seq_printf(m, "machine\t\t: %s\n", codegendescription); 54 seq_printf(m, "machine\t\t: %s\n", codegendescription);