init.c (28336be568bb473d16ba80db0801276fb4f1bbe5) | init.c (96747a51fe62eb13481a39438453262d22148fa7) |
---|---|
1// SPDX-License-Identifier: ISC 2 3#include <linux/etherdevice.h> 4#include "mt7603.h" 5#include "mac.h" 6#include "eeprom.h" 7 8const struct mt76_driver_ops mt7603_drv_ops = { --- 559 unchanged lines hidden (view full) --- 568 wiphy->reg_notifier = mt7603_regd_notifier; 569 570 ret = mt76_register_device(&dev->mt76, true, mt7603_rates, 571 ARRAY_SIZE(mt7603_rates)); 572 if (ret) 573 return ret; 574 575 mt7603_init_debugfs(dev); | 1// SPDX-License-Identifier: ISC 2 3#include <linux/etherdevice.h> 4#include "mt7603.h" 5#include "mac.h" 6#include "eeprom.h" 7 8const struct mt76_driver_ops mt7603_drv_ops = { --- 559 unchanged lines hidden (view full) --- 568 wiphy->reg_notifier = mt7603_regd_notifier; 569 570 ret = mt76_register_device(&dev->mt76, true, mt7603_rates, 571 ARRAY_SIZE(mt7603_rates)); 572 if (ret) 573 return ret; 574 575 mt7603_init_debugfs(dev); |
576 mt7603_init_txpower(dev, &dev->mt76.sband_2g.sband); | 576 mt7603_init_txpower(dev, &dev->mphy.sband_2g.sband); |
577 578 return 0; 579} 580 581void mt7603_unregister_device(struct mt7603_dev *dev) 582{ 583 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); 584 mt76_unregister_device(&dev->mt76); 585 mt7603_mcu_exit(dev); 586 mt7603_dma_cleanup(dev); 587 mt76_free_device(&dev->mt76); 588} | 577 578 return 0; 579} 580 581void mt7603_unregister_device(struct mt7603_dev *dev) 582{ 583 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); 584 mt76_unregister_device(&dev->mt76); 585 mt7603_mcu_exit(dev); 586 mt7603_dma_cleanup(dev); 587 mt76_free_device(&dev->mt76); 588} |