ath10k: destroy sdio workqueue while remove sdio module
authorWen Gong <wgong@codeaurora.org>
Thu, 27 Jun 2019 18:21:51 +0000 (21:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:14:14 +0000 (09:14 +0200)
commit05592b9b7f256ee36936a9012c6fcb51850468d8
tree4f2ed43dc4dd5374c79c75813ed066ee86cfca30
parent26d86b29e806769adba91bd6fc1f077b94e9b64b
ath10k: destroy sdio workqueue while remove sdio module

[ Upstream commit 3ed39f8e747a7aafeec07bb244f2c3a1bdca5730 ]

The workqueue need to flush and destory while remove sdio module,
otherwise it will have thread which is not destory after remove
sdio modules.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00007-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/sdio.c