mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921: move init shared code in mt792x-lib module
Reduce duplicated code moving init shared code in mt792x-lib module. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
8d561811f2
commit
0034ae2890
+2
-2
@@ -212,8 +212,8 @@ static int mt7921u_probe(struct usb_interface *usb_intf,
|
||||
u8 features;
|
||||
int ret;
|
||||
|
||||
ops = mt7921_get_mac80211_ops(&usb_intf->dev, (void *)id->driver_info,
|
||||
&features);
|
||||
ops = mt792x_get_mac80211_ops(&usb_intf->dev, &mt7921_ops,
|
||||
(void *)id->driver_info, &features);
|
||||
if (!ops)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user