[openwrt/openwrt] ramips: mtk_eth_soc: don't allocate 4 queues

LEDE Commits lede-commits at lists.infradead.org
Sat Sep 28 16:47:13 PDT 2024


981213 pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/fb3d681783409a05587f1f5176e54abfcf2343a1

commit fb3d681783409a05587f1f5176e54abfcf2343a1
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat Sep 28 11:47:39 2024 -0700

    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 <rosenp at gmail.com>
---
 target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;




More information about the lede-commits mailing list