mt76: introduce mt76_free_device routine
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 27 Mar 2019 11:41:03 +0000 (12:41 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 1 May 2019 11:03:57 +0000 (13:03 +0200)
commitdef34a2f4f44715aadadb141f3050e586c62f7d4
tree5d6ed15db14d59cb2d3c7d485bff4e1ffd182911
parente5fc742f9285c47d7f59e29d7f3b749e824d7ee3
mt76: introduce mt76_free_device routine

Move mt76_tx_free in mt76_free_device routine in order to
unmap all txwi descriptors at module unload

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7603/init.c
drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci.c