summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2022-06-03 10:21:37 +0200
committerFelix Fietkau <nbd@nbd.name>2022-07-11 13:40:01 +0200
commit56054087bb17f98d62419acc3d0e5afc9544a4fb (patch)
tree233ebf85b61d71dc16e735ea50d6cfbc63fb6974 /drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
parentmt76: mt7921: add missing bh-disable around rx napi schedule (diff)
downloadlinux-56054087bb17f98d62419acc3d0e5afc9544a4fb.tar.xz
linux-56054087bb17f98d62419acc3d0e5afc9544a4fb.zip
mt76: mt7921: get rid of mt7921_mcu_exit
Run skb_queue_purge when needed. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/sdio.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7921/sdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/sdio.c b/drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
index af26d59fa2f0..487acd6e2be8 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/sdio.c
@@ -48,7 +48,7 @@ static void mt7921s_unregister_device(struct mt7921_dev *dev)
mt76s_deinit(&dev->mt76);
mt7921s_wfsys_reset(dev);
- mt7921_mcu_exit(dev);
+ skb_queue_purge(&dev->mt76.mcu.res_q);
mt76_free_device(&dev->mt76);
}