struct wiphy *wiphy = hw->wiphy;
int ret;
- ret = mt76u_mcu_init_rx(mdev);
- if (ret < 0)
- return ret;
-
- ret = mt76u_alloc_queues(mdev);
- if (ret < 0)
- return ret;
-
ret = mt76x0_init_hardware(dev);
if (ret)
return ret;
{ 0, }
};
-static int mt76x0_probe(struct usb_interface *usb_intf,
+static int mt76x0u_probe(struct usb_interface *usb_intf,
const struct usb_device_id *id)
{
struct usb_device *usb_dev = interface_to_usbdev(usb_intf);
if (!(mt76_rr(dev, MT_EFUSE_CTRL) & MT_EFUSE_CTRL_SEL))
dev_warn(dev->mt76.dev, "Warning: eFUSE not present\n");
+ ret = mt76u_mcu_init_rx(&dev->mt76);
+ if (ret < 0)
+ goto err;
+
+ ret = mt76u_alloc_queues(&dev->mt76);
+ if (ret < 0)
+ goto err;
+
ret = mt76x0_register_device(dev);
if (ret)
goto err_hw;
static struct usb_driver mt76x0_driver = {
.name = KBUILD_MODNAME,
.id_table = mt76x0_device_table,
- .probe = mt76x0_probe,
+ .probe = mt76x0u_probe,
.disconnect = mt76x0_disconnect,
.suspend = mt76x0_suspend,
.resume = mt76x0_resume,