blob: 465c4deabc144bf640a036c55f996ba0ea459b77 [file] [log] [blame]
--- a/drivers/net/ethernet/atheros/alx/main.c
+++ b/drivers/net/ethernet/atheros/alx/main.c
@@ -1261,7 +1261,7 @@ static int alx_probe(struct pci_dev *pde
goto out_free_netdev;
}
- netdev->netdev_ops = &alx_netdev_ops;
+ netdev_attach_ops(netdev, &alx_netdev_ops);
SET_ETHTOOL_OPS(netdev, &alx_ethtool_ops);
netdev->irq = pdev->irq;
netdev->watchdog_timeo = ALX_WATCHDOG_TIME;