diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2007-02-12 23:13:23 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-13 05:35:53 +0100 |
commit | 46e4cf6c14e0a5b8916a1236a7079ccad3f4352a (patch) | |
tree | 97cfb9dcce063a248100bd6a30a9a3f6affd9705 /arch/powerpc/platforms | |
parent | [POWERPC] Use common 52xx of_platform probe code for EFIKA (diff) | |
download | linux-46e4cf6c14e0a5b8916a1236a7079ccad3f4352a.tar.xz linux-46e4cf6c14e0a5b8916a1236a7079ccad3f4352a.zip |
[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>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/52xx/efika-setup.c | 13 |
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) const char *codegenvendor = NULL; root = of_find_node_by_path("/"); - if (root) { - revision = get_property(root, "revision", NULL); - codegendescription = - get_property(root, "CODEGEN,description", NULL); - codegenvendor = get_property(root, "CODEGEN,vendor", NULL); + if (!root) + return; - 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) seq_printf(m, "machine\t\t: %s\n", codegendescription); |