init.c (3a0098768761d335222a7f437870fd23287819f7) init.c (dfc7743de1ebb5ff5c2ed323eaff1994da11abd9)
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#include <linux/etherdevice.h>
5#include "mt7921.h"
6#include "mac.h"
7#include "mcu.h"
8#include "eeprom.h"

--- 290 unchanged lines hidden (view full) ---

299 mt76_for_each_q_rx(&dev->mt76, i)
300 napi_disable(&dev->mt76.napi[i]);
301 cancel_delayed_work_sync(&pm->ps_work);
302 cancel_work_sync(&pm->wake_work);
303
304 mt7921_tx_token_put(dev);
305 mt7921_mcu_drv_pmctrl(dev);
306 mt7921_dma_cleanup(dev);
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#include <linux/etherdevice.h>
5#include "mt7921.h"
6#include "mac.h"
7#include "mcu.h"
8#include "eeprom.h"

--- 290 unchanged lines hidden (view full) ---

299 mt76_for_each_q_rx(&dev->mt76, i)
300 napi_disable(&dev->mt76.napi[i]);
301 cancel_delayed_work_sync(&pm->ps_work);
302 cancel_work_sync(&pm->wake_work);
303
304 mt7921_tx_token_put(dev);
305 mt7921_mcu_drv_pmctrl(dev);
306 mt7921_dma_cleanup(dev);
307 mt7921_wfsys_reset(dev);
307 mt7921_mcu_exit(dev);
308
309 tasklet_disable(&dev->irq_tasklet);
310 mt76_free_device(&dev->mt76);
311}
308 mt7921_mcu_exit(dev);
309
310 tasklet_disable(&dev->irq_tasklet);
311 mt76_free_device(&dev->mt76);
312}