mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix cleanup order
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -218,8 +218,8 @@ void mt76_unregister_device(struct mt76_dev *dev)
|
||||
{
|
||||
struct ieee80211_hw *hw = dev->hw;
|
||||
|
||||
mt76_tx_free(dev);
|
||||
ieee80211_unregister_hw(hw);
|
||||
mt76_tx_free(dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_unregister_device);
|
||||
|
||||
|
||||
+1
-1
@@ -383,8 +383,8 @@ int mt7603_register_device(struct mt7603_dev *dev)
|
||||
|
||||
void mt7603_unregister_device(struct mt7603_dev *dev)
|
||||
{
|
||||
mt7603_mac_status_skb(dev, NULL, -1);
|
||||
mt76_unregister_device(&dev->mt76);
|
||||
mt7603_mac_status_skb(dev, NULL, -1);
|
||||
mt7603_mcu_exit(dev);
|
||||
mt7603_dma_cleanup(dev);
|
||||
ieee80211_free_hw(mt76_hw(dev));
|
||||
|
||||
Reference in New Issue
Block a user