summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-is31fl319x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-is31fl319x.c')
-rw-r--r--drivers/leds/leds-is31fl319x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-is31fl319x.c b/drivers/leds/leds-is31fl319x.c
index e6d185ad0b7e..4161b9dd7e48 100644
--- a/drivers/leds/leds-is31fl319x.c
+++ b/drivers/leds/leds-is31fl319x.c
@@ -220,7 +220,7 @@ static int is31fl319x_parse_dt(struct device *dev,
is31->cdef = device_get_match_data(dev);
- count = of_get_child_count(np);
+ count = of_get_available_child_count(np);
dev_dbg(dev, "probing with %d leds defined in DT\n", count);
@@ -230,7 +230,7 @@ static int is31fl319x_parse_dt(struct device *dev,
return -ENODEV;
}
- for_each_child_of_node(np, child) {
+ for_each_available_child_of_node(np, child) {
struct is31fl319x_led *led;
u32 reg;