Skip to content

Commit

Permalink
ramips: mtk_eth_soc: don't allocate 4 queues
Browse files Browse the repository at this point in the history
This driver does not support more than 1 queue.

Fixes: ba24b94 ("ramips: use more devm in mtk_eth_soc")
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and 981213 committed Sep 28, 2024
1 parent 45bd222 commit fb3d681
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb3d681

Please sign in to comment.