]> www.infradead.org Git - users/dwmw2/linux.git/commit
powerpc/83xx: Add missing of_node_put() after of_device_is_available()
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 23 Feb 2019 13:20:34 +0000 (14:20 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:11:45 +0000 (21:11 +0100)
commit2954ef4859feb37fd568a36e09cf93032299f4a1
tree8c684b21b7f7c11829e91512c49af280b56527b1
parenta43eca8aa889570f24bf48f87a719000726d6858
powerpc/83xx: Add missing of_node_put() after of_device_is_available()

commit 4df2cb633b5b22ba152511f1a55e718efca6c0d9 upstream.

Add an of_node_put() when a tested device node is not available.

Fixes: c026c98739c7e ("powerpc/83xx: Do not configure or probe disabled FSL DR USB controllers")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/platforms/83xx/usb.c