summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-max77693.c
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2015-11-25 09:34:10 +0100
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-01-04 09:57:38 +0100
commit8891161567eacfcf703b683798e17b1236096b2c (patch)
tree5e1fe3aae6b3e6d3a1c878936ab649a58521f38d /drivers/leds/leds-max77693.c
parent0c24199ca9dd0ec1eaddc49ec83ca97bc1f1c233 (diff)
downloadlinux-8891161567eacfcf703b683798e17b1236096b2c.tar.gz
linux-8891161567eacfcf703b683798e17b1236096b2c.tar.bz2
linux-8891161567eacfcf703b683798e17b1236096b2c.zip
leds: max77693: Add missing of_node_put
Each break out of the for_each_available_child_of_node loop requires of_node_put(). This patch adds missing of_node_put() when loop breaks on conflicting values of led-sources DT property. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Cc: Rob Herring <robh@kernel.org> Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'drivers/leds/leds-max77693.c')
-rw-r--r--drivers/leds/leds-max77693.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds-max77693.c b/drivers/leds/leds-max77693.c
index 9401e33305b3..1eb58ef6aefe 100644
--- a/drivers/leds/leds-max77693.c
+++ b/drivers/leds/leds-max77693.c
@@ -648,6 +648,7 @@ static int max77693_led_parse_dt(struct max77693_led_device *led,
if (sub_nodes[fled_id]) {
dev_err(dev,
"Conflicting \"led-sources\" DT properties\n");
+ of_node_put(child_node);
return -EINVAL;
}