diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-09-27 04:27:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-28 01:09:53 -0400 |
commit | fe06912333bb9776b0429100b195080809984ae4 (patch) | |
tree | 9f951284e8b2ce5952da6fc923d2ad6989b6985e /drivers/net/gianfar.c | |
parent | 003ab6742a31662eb808f01273126830612cbda1 (diff) |
gianfar: Use netif_set_real_num_rx_queues()
Do not set num_tx_queues or real_num_tx_queues, since
alloc_etherdev_mq() does that.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index f30adbf86bb2..6180089bf67a 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -654,9 +654,8 @@ static int gfar_of_init(struct platform_device *ofdev, struct net_device **pdev) | |||
654 | priv->node = ofdev->dev.of_node; | 654 | priv->node = ofdev->dev.of_node; |
655 | priv->ndev = dev; | 655 | priv->ndev = dev; |
656 | 656 | ||
657 | dev->num_tx_queues = num_tx_qs; | ||
658 | dev->real_num_tx_queues = num_tx_qs; | ||
659 | priv->num_tx_queues = num_tx_qs; | 657 | priv->num_tx_queues = num_tx_qs; |
658 | netif_set_real_num_rx_queues(dev, num_rx_qs); | ||
660 | priv->num_rx_queues = num_rx_qs; | 659 | priv->num_rx_queues = num_rx_qs; |
661 | priv->num_grps = 0x0; | 660 | priv->num_grps = 0x0; |
662 | 661 | ||