From cc02e495cda55855ab395678457b6a7366298835 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 7 Nov 2017 12:42:18 +0100 Subject: [PATCH] mac80211: move DT led configuration to the "led" child node Signed-off-by: Felix Fietkau --- mac80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mac80211.c b/mac80211.c index c8adcfaa..2873aac2 100644 --- a/mac80211.c +++ b/mac80211.c @@ -108,6 +108,7 @@ static int mt76_led_init(struct mt76_dev *dev) mt76_tpt_blink, ARRAY_SIZE(mt76_tpt_blink)); + np = of_get_child_by_name(np, "led"); if (np) { if (!of_property_read_u32(np, "led-sources", &led_pin)) dev->led_pin = led_pin;