Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff8365ca authored by Alexander Beregalov's avatar Alexander Beregalov Committed by John W. Linville
Browse files

ar9170: fix build error when !CONFIG_AR9170_LEDS



Fix this build error when CONFIG_AR9170_LEDS is not set
drivers/net/wireless/ath/ar9170/main.c:1296: error: 'struct ar9170' has
no member named 'led_work'

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 11866efa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1293,7 +1293,9 @@ static void ar9170_op_stop(struct ieee80211_hw *hw)
	flush_workqueue(ar->hw->workqueue);

	cancel_delayed_work_sync(&ar->tx_janitor);
#ifdef CONFIG_AR9170_LEDS
	cancel_delayed_work_sync(&ar->led_work);
#endif
	cancel_work_sync(&ar->filter_config_work);
	cancel_work_sync(&ar->beacon_work);
	mutex_lock(&ar->mutex);