mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move mt76 workqueue in common code
Move mt76 workqueue from usb to common code in order to be reused adding low-power support for mt7663 chipset Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
dad3f93e8f
commit
ec303bfad2
+2
-5
@@ -75,8 +75,7 @@ static int mt76x2u_probe(struct usb_interface *intf,
|
||||
return 0;
|
||||
|
||||
err:
|
||||
ieee80211_free_hw(mt76_hw(dev));
|
||||
mt76u_deinit(&dev->mt76);
|
||||
mt76_free_device(&dev->mt76);
|
||||
usb_set_intfdata(intf, NULL);
|
||||
usb_put_dev(udev);
|
||||
|
||||
@@ -92,9 +91,7 @@ static void mt76x2u_disconnect(struct usb_interface *intf)
|
||||
set_bit(MT76_REMOVED, &dev->mphy.state);
|
||||
ieee80211_unregister_hw(hw);
|
||||
mt76x2u_cleanup(dev);
|
||||
mt76u_deinit(&dev->mt76);
|
||||
|
||||
ieee80211_free_hw(hw);
|
||||
mt76_free_device(&dev->mt76);
|
||||
usb_set_intfdata(intf, NULL);
|
||||
usb_put_dev(udev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user