]> git.baikalelectronics.ru Git - kernel.git/commit
arm: mach-spear: Add missing of_node_put() in time.c
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 09:30:27 +0000 (17:30 +0800)
committerArnd Bergmann <arnd@arndb.de>
Fri, 24 Jun 2022 15:18:55 +0000 (17:18 +0200)
commit6b158e3d3d12341a7d0e8df5dbb504a8c9570ec6
treef845f1b26bdf9d8e41f33ed06f1d7ec027225d13
parentbddc00ce53fcddb2c935efd36e8d9f9d1df5345e
arm: mach-spear: Add missing of_node_put() in time.c

In spear_setup_of_timer(), of_find_matching_node() will return a
node pointer with refcount incrementd. We should use of_node_put()
in each fail path or when it is not used anymore.

Signed-off-by: Liang He <windhl@126.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220616093027.9a29a74-1-windhl@126.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-spear/time.c