]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/leds/leds-lm36274.c
Merge tag 'for-5.4/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/devic...
[linux.git] / drivers / leds / leds-lm36274.c
index ed9dc857ec8f324abef9ed2009109304262e6644..836b60c9a2b80865461e586556e230761fcc2014 100644 (file)
@@ -90,9 +90,7 @@ static int lm36274_parse_dt(struct lm36274 *lm36274_data)
                        snprintf(label, sizeof(label),
                                 "%s:%s", lm36274_data->pdev->name, name);
 
-               lm36274_data->num_leds = fwnode_property_read_u32_array(child,
-                                                         "led-sources",
-                                                         NULL, 0);
+               lm36274_data->num_leds = fwnode_property_count_u32(child, "led-sources");
                if (lm36274_data->num_leds <= 0)
                        return -ENODEV;