Commit a7513a4f authored by Xinming Hu's avatar Xinming Hu Committed by Kalle Valo

mwifiex: get rid of __mwifiex_sdio_remove helper

__mwifiex_sdio_remove helper is not needed after
our enhancements in SDIO card reset.
Signed-off-by: default avatarXinming Hu <huxm@marvell.com>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent c742e623
...@@ -370,7 +370,7 @@ static int mwifiex_check_winner_status(struct mwifiex_adapter *adapter) ...@@ -370,7 +370,7 @@ static int mwifiex_check_winner_status(struct mwifiex_adapter *adapter)
* This function removes the interface and frees up the card structure. * This function removes the interface and frees up the card structure.
*/ */
static void static void
__mwifiex_sdio_remove(struct sdio_func *func) mwifiex_sdio_remove(struct sdio_func *func)
{ {
struct sdio_mmc_card *card; struct sdio_mmc_card *card;
struct mwifiex_adapter *adapter; struct mwifiex_adapter *adapter;
...@@ -388,6 +388,8 @@ __mwifiex_sdio_remove(struct sdio_func *func) ...@@ -388,6 +388,8 @@ __mwifiex_sdio_remove(struct sdio_func *func)
if (!adapter || !adapter->priv_num) if (!adapter || !adapter->priv_num)
return; return;
cancel_work_sync(&sdio_work);
mwifiex_dbg(adapter, INFO, "info: SDIO func num=%d\n", func->num); mwifiex_dbg(adapter, INFO, "info: SDIO func num=%d\n", func->num);
ret = mwifiex_sdio_read_fw_status(adapter, &firmware_stat); ret = mwifiex_sdio_read_fw_status(adapter, &firmware_stat);
...@@ -402,13 +404,6 @@ __mwifiex_sdio_remove(struct sdio_func *func) ...@@ -402,13 +404,6 @@ __mwifiex_sdio_remove(struct sdio_func *func)
mwifiex_remove_card(adapter); mwifiex_remove_card(adapter);
} }
static void
mwifiex_sdio_remove(struct sdio_func *func)
{
cancel_work_sync(&sdio_work);
__mwifiex_sdio_remove(func);
}
/* /*
* SDIO suspend. * SDIO suspend.
* *
......
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