mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7615: avoid mcu_restart function pointer
Run mt7615_mcu_restart routine directly and avoid mcu_restart function pointer whenever it is possible. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
dad96dd3e6
commit
19d36dd9c8
+1
-2
@@ -1692,7 +1692,6 @@ int mt7615_mcu_init(struct mt7615_dev *dev)
|
||||
.headroom = sizeof(struct mt7615_mcu_txd),
|
||||
.mcu_skb_send_msg = mt7615_mcu_send_message,
|
||||
.mcu_parse_response = mt7615_mcu_parse_response,
|
||||
.mcu_restart = mt7615_mcu_restart,
|
||||
};
|
||||
int ret;
|
||||
|
||||
@@ -1732,7 +1731,7 @@ EXPORT_SYMBOL_GPL(mt7615_mcu_init);
|
||||
|
||||
void mt7615_mcu_exit(struct mt7615_dev *dev)
|
||||
{
|
||||
__mt76_mcu_restart(&dev->mt76);
|
||||
mt7615_mcu_restart(&dev->mt76);
|
||||
mt7615_mcu_set_fw_ctrl(dev);
|
||||
skb_queue_purge(&dev->mt76.mcu.res_q);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user