summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/usb.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>2018-09-09 23:32:37 +0300
committerFelix Fietkau <nbd@nbd.name>2018-09-19 13:31:18 +0300
commitdb0f04f324b3a9a317af2f050397c1dfa903eefa (patch)
treeeb553f32f9e9870181c737f6317618cae6050e27 /drivers/net/wireless/mediatek/mt76/usb.c
parentdce9dc8d571b916bb55e08b66fb7bc4c5abd9ae5 (diff)
downloadlinux-db0f04f324b3a9a317af2f050397c1dfa903eefa.tar.xz
mt76: add mt76_mcu_ops data structure for mcu related pointers
Introduce mt76_mcu_ops data structure to contain mcu related function pointers. This is a preliminary patch to move mt76x02 usb mcu code in mt76x02-usb module Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/usb.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c
index 333b2c8ca7a4..1259a2b8e205 100644
--- a/drivers/net/wireless/mediatek/mt76/usb.c
+++ b/drivers/net/wireless/mediatek/mt76/usb.c
@@ -836,6 +836,7 @@ int mt76u_init(struct mt76_dev *dev,
mutex_init(&usb->usb_ctrl_mtx);
dev->bus = &mt76u_ops;
dev->queue_ops = &usb_queue_ops;
+ mt76u_init_mcu_ops(dev);
return mt76u_set_endpoints(intf, usb);
}