ARM: hisi: Add missing of_node_put after of_find_compatible_node
authorPeng Wu <wupeng58@huawei.com>
Thu, 28 Apr 2022 10:43:06 +0000 (10:43 +0000)
committerWei Xu <xuwei5@hisilicon.com>
Fri, 6 May 2022 02:27:49 +0000 (02:27 +0000)
commit9bc72e47d4630d58a840a66a869c56b29554cfe4
tree3d471a3f910dbd08f2f0b0cb6189d79d4125ebb4
parent3123109284176b1532874591f7c81f3837bbdc17
ARM: hisi: Add missing of_node_put after of_find_compatible_node

of_find_compatible_node  will increment the refcount of the returned
device_node. Calling of_node_put() to avoid the refcount leak

Signed-off-by: Peng Wu <wupeng58@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm/mach-hisi/platsmp.c