ramips: mtk_eth_soc: don't allocate 4 queues
authorRosen Penev <rosenp@gmail.com>
Sat, 28 Sep 2024 18:47:39 +0000 (11:47 -0700)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 28 Sep 2024 23:46:33 +0000 (07:46 +0800)
This driver does not support more than 1 queue.

Fixes: ba24b94e0b8 ("ramips: use more devm in mtk_eth_soc")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c

index 893198d8261a126cb35b18b230751cdc3be144c8..d8d27fda3b15d9537cd28b3dcc6ceed5b0692faf 100644 (file)
@@ -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;