mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move initialization of some struct members to mt76_alloc_device
Reduces duplication and prepares for further rework Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -956,7 +956,6 @@ int mt76u_init(struct mt76_dev *dev,
|
||||
tasklet_init(&usb->rx_tasklet, mt76u_rx_tasklet, (unsigned long)dev);
|
||||
tasklet_init(&dev->tx_tasklet, mt76u_tx_tasklet, (unsigned long)dev);
|
||||
INIT_WORK(&usb->stat_work, mt76u_tx_status_data);
|
||||
skb_queue_head_init(&dev->rx_skb[MT_RXQ_MAIN]);
|
||||
|
||||
usb->stat_wq = alloc_workqueue("mt76u", WQ_UNBOUND, 0);
|
||||
if (!usb->stat_wq)
|
||||
|
||||
Reference in New Issue
Block a user