leds: ktd2692: Add missing of_node_put
authorIngi Kim <ingi2.kim@samsung.com>
Mon, 16 Nov 2015 14:19:55 +0000 (15:19 +0100)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:37 +0000 (09:57 +0100)
commit77e7915b15bba2bf6edec6f258fb4158fef8e416
treecb286ca051256b346943c72f7aa2a92c5f28604a
parentf16703360da7731a057df2ffa902306819c22398
leds: ktd2692: Add missing of_node_put

The refcount of device_node increases after of_node_get() is called.
So, a break out of the loop requires of_node_put().

This patch adds missing of_node_put() when loop breaks.

Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-ktd2692.c