From: Ben Hutchings Date: Mon, 27 Sep 2010 08:27:37 +0000 (+0000) Subject: gianfar: Use netif_set_real_num_rx_queues() X-Git-Tag: MMI-PSA29.97-13-9~21994^2~333 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe06912333bb9776b0429100b195080809984ae4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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) priv->node = ofdev->dev.of_node; priv->ndev = dev; - dev->num_tx_queues = num_tx_qs; - dev->real_num_tx_queues = num_tx_qs; priv->num_tx_queues = num_tx_qs; + netif_set_real_num_rx_queues(dev, num_rx_qs); priv->num_rx_queues = num_rx_qs; priv->num_grps = 0x0;