[POWERPC] Fix unbalanced of_node_{get,put} in efika-setup.c
Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
82a03b9227
commit
46e4cf6c14
1 changed files with 6 additions and 7 deletions
|
@ -42,14 +42,13 @@ static void efika_show_cpuinfo(struct seq_file *m)
|
||||||
const char *codegenvendor = NULL;
|
const char *codegenvendor = NULL;
|
||||||
|
|
||||||
root = of_find_node_by_path("/");
|
root = of_find_node_by_path("/");
|
||||||
if (root) {
|
if (!root)
|
||||||
revision = get_property(root, "revision", NULL);
|
return;
|
||||||
codegendescription =
|
|
||||||
get_property(root, "CODEGEN,description", NULL);
|
|
||||||
codegenvendor = get_property(root, "CODEGEN,vendor", NULL);
|
|
||||||
|
|
||||||
of_node_put(root);
|
revision = get_property(root, "revision", NULL);
|
||||||
}
|
codegendescription =
|
||||||
|
get_property(root, "CODEGEN,description", NULL);
|
||||||
|
codegenvendor = get_property(root, "CODEGEN,vendor", NULL);
|
||||||
|
|
||||||
if (codegendescription)
|
if (codegendescription)
|
||||||
seq_printf(m, "machine\t\t: %s\n", codegendescription);
|
seq_printf(m, "machine\t\t: %s\n", codegendescription);
|
||||||
|
|
Loading…
Reference in a new issue