OSDN Git Service

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)
commit2c629dd2d14fd7f64a553f809eda6d0b3a4f615a
treef845f1b26bdf9d8e41f33ed06f1d7ec027225d13
parent1ba904b6b16e08de5aed7c1349838d9cd0d178c5
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.3984903-1-windhl@126.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-spear/time.c