ramips: 5.10: port and refresh patches, ralink drv
[openwrt/staging/rmilecki.git] / target / linux / ramips / files / drivers / net / ethernet / ralink / mtk_eth_soc.c
index f8301ad3ca7b2c7acada544831315cd9e6c90830..b6e321b78c0c7fcabecdea24d1d8e612726c57f7 100644 (file)
@@ -1085,7 +1085,11 @@ poll_again:
        return rx_done;
 }
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
 static void fe_tx_timeout(struct net_device *dev)
+#else
+static void fe_tx_timeout(struct net_device *dev, unsigned int txqueue)
+#endif
 {
        struct fe_priv *priv = netdev_priv(dev);
        struct fe_tx_ring *ring = &priv->tx_ring;