mediatek: leds-smartrg: handle disabled LEDs

If LEDs are disabled, they should not be handled.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16651
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Rosen Penev 2024-10-08 16:39:07 -07:00 committed by Hauke Mehrtens
parent 0dfe1e876a
commit a6252a6dfc
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ srg_led_probe(struct i2c_client *client)
i2c_set_clientdata(client, sysled_ctrl);
for_each_child_of_node(np, child) {
for_each_available_child_of_node(np, child) {
if (srg_led_init_led(sysled_ctrl, child))
continue;