Commit 2ddd82ee authored by Amol Hanwate's avatar Amol Hanwate Committed by Kalle Valo

rsi: move init_done flag to end of rsi_91x_init().

common->init_done flag should set after basic initialization. Hence,
moving init_done flag at end of rsi_91x_init().
Signed-off-by: default avatarAmol Hanwate <amol.hanwate@redpinesignals.com>
Signed-off-by: default avatarSiva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 160ee2a1
...@@ -331,7 +331,6 @@ struct rsi_hw *rsi_91x_init(u16 oper_mode) ...@@ -331,7 +331,6 @@ struct rsi_hw *rsi_91x_init(u16 oper_mode)
spin_lock_init(&adapter->ps_lock); spin_lock_init(&adapter->ps_lock);
timer_setup(&common->roc_timer, rsi_roc_timeout, 0); timer_setup(&common->roc_timer, rsi_roc_timeout, 0);
init_completion(&common->wlan_init_completion); init_completion(&common->wlan_init_completion);
common->init_done = true;
adapter->device_model = RSI_DEV_9113; adapter->device_model = RSI_DEV_9113;
common->oper_mode = oper_mode; common->oper_mode = oper_mode;
...@@ -369,6 +368,7 @@ struct rsi_hw *rsi_91x_init(u16 oper_mode) ...@@ -369,6 +368,7 @@ struct rsi_hw *rsi_91x_init(u16 oper_mode)
} }
#endif #endif
common->init_done = true;
return adapter; return adapter;
err: err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment