Skip to content

Commit

Permalink
mediatek: leds-smartrg: handle disabled LEDs
Browse files Browse the repository at this point in the history
If LEDs are disabled, they should not be handled.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt/openwrt#16651
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
neheb authored and hauke committed Oct 19, 2024
1 parent 0dfe1e8 commit a6252a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a6252a6

Please sign in to comment.