ARM: uniphier: add missing of_node_put()
This node pointer is allocated by of_find_compatible_node() in this function. It should be put before exitting this function. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
2a993a587e
commit
9eca796ee3
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ static int __init uniphier_smp_prepare_trampoline(unsigned int max_cpus)
|
||||||
|
|
||||||
np = of_find_compatible_node(NULL, NULL,
|
np = of_find_compatible_node(NULL, NULL,
|
||||||
"socionext,uniphier-system-bus-controller");
|
"socionext,uniphier-system-bus-controller");
|
||||||
|
of_node_put(np);
|
||||||
ret = of_address_to_resource(np, 1, &res);
|
ret = of_address_to_resource(np, 1, &res);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("failed to get resource of system-bus-controller\n");
|
pr_err("failed to get resource of system-bus-controller\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue