From: Rosen Penev Date: Sat, 28 Sep 2024 18:47:39 +0000 (-0700) Subject: ramips: mtk_eth_soc: don't allocate 4 queues X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fb3d681783409a05587f1f5176e54abfcf2343a1;p=openwrt%2Fstaging%2Fxback.git ramips: mtk_eth_soc: don't allocate 4 queues This driver does not support more than 1 queue. Fixes: ba24b94e0b8 ("ramips: use more devm in mtk_eth_soc") Signed-off-by: Rosen Penev --- diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c index 893198d826..d8d27fda3b 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c @@ -1545,7 +1545,7 @@ static int fe_probe(struct platform_device *pdev) if (IS_ERR(fe_base)) return PTR_ERR(fe_base); - netdev = devm_alloc_etherdev_mqs(&pdev->dev, sizeof(*priv), 4, 4); + netdev = devm_alloc_etherdev(&pdev->dev, sizeof(*priv)); if (!netdev) { dev_err(&pdev->dev, "alloc_etherdev failed\n"); return -ENOMEM;