leds: aat1290: Add missing of_node_put
authorJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 25 Nov 2015 08:22:19 +0000 (09:22 +0100)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:38 +0000 (09:57 +0100)
commit0c24199ca9dd0ec1eaddc49ec83ca97bc1f1c233
tree0ff0739bc9d4758459b4e71b86d820a2ad6be94f
parentf5db6b8301bf11d8f5422ba8e6cff43add8bd861
leds: aat1290: Add missing of_node_put

The refcount of device_node increases after of_get_next_available_child()
is called. Make sure it is decremented also in case of DT parsing error.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/leds/leds-aat1290.c