aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2008-04-03 19:05:23 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-08 16:44:42 -0400
commitfe00b5a5b7e29180e427e58b3d0a185d1dd3f105 (patch)
treec5399dbf16d9b5f8ae1c63974d5a7fa6ab10f8e7
parentdc92e49729142047bce8f14762accb322962b585 (diff)
iwlwifi: ensure led registration complete as part of initialization
After the workqueue is notified the LED code may be accessed. Ensure that LED registration completes completely as part of initialization before anything waiting on this is notified. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 51480a4920e8..d4daa04465a3 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -5874,12 +5874,12 @@ static void iwl3945_alive_start(struct iwl3945_priv *priv)
5874 5874
5875 iwl3945_reg_txpower_periodic(priv); 5875 iwl3945_reg_txpower_periodic(priv);
5876 5876
5877 iwl3945_led_register(priv);
5878
5877 IWL_DEBUG_INFO("ALIVE processing complete.\n"); 5879 IWL_DEBUG_INFO("ALIVE processing complete.\n");
5878 set_bit(STATUS_READY, &priv->status); 5880 set_bit(STATUS_READY, &priv->status);
5879 wake_up_interruptible(&priv->wait_command_queue); 5881 wake_up_interruptible(&priv->wait_command_queue);
5880 5882
5881 iwl3945_led_register(priv);
5882
5883 if (priv->error_recovering) 5883 if (priv->error_recovering)
5884 iwl3945_error_recovery(priv); 5884 iwl3945_error_recovery(priv);
5885 5885
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 5dfc414792c1..4517e4ce3a25 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -5701,12 +5701,12 @@ static void iwl4965_alive_start(struct iwl_priv *priv)
5701 5701
5702 iwl4965_rf_kill_ct_config(priv); 5702 iwl4965_rf_kill_ct_config(priv);
5703 5703
5704 iwl_leds_register(priv);
5705
5704 IWL_DEBUG_INFO("ALIVE processing complete.\n"); 5706 IWL_DEBUG_INFO("ALIVE processing complete.\n");
5705 set_bit(STATUS_READY, &priv->status); 5707 set_bit(STATUS_READY, &priv->status);
5706 wake_up_interruptible(&priv->wait_command_queue); 5708 wake_up_interruptible(&priv->wait_command_queue);
5707 5709
5708 iwl_leds_register(priv);
5709
5710 if (priv->error_recovering) 5710 if (priv->error_recovering)
5711 iwl4965_error_recovery(priv); 5711 iwl4965_error_recovery(priv);
5712 5712