powerpc/powermac: fix OF node refcount leak
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 31 Jan 2017 17:43:55 +0000 (09:43 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 4 Dec 2017 00:54:34 +0000 (11:54 +1100)
commit2aaf0a198d7af53a946ad69976d3cc7e7673d13f
tree4113c9b802bfc5f269f072d818fc6f9cd274e975
parentf2c2cbcc35d47f1471a04155ac357521f5170371
powerpc/powermac: fix OF node refcount leak

We need to call of_node_put() for device nodes obtained with
of_find_node_by_name().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powermac/pic.c