ar9170: fix build error when !CONFIG_AR9170_LEDS
authorAlexander Beregalov <a.beregalov@gmail.com>
Fri, 24 Jul 2009 07:55:44 +0000 (11:55 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jul 2009 19:46:01 +0000 (15:46 -0400)
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: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/main.c

index c7287a883a48e584f79898f31ddfbdf43341cd9f..85a1452a7c3c30707f67b8f2df6d37b95405f20b 100644 (file)
@@ -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);