]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: only probe queues once and use stored values
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 31 Mar 2015 13:01:59 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 20:51:17 +0000 (16:51 -0400)
commit7205bdb362dd7ec1479b35599103572b704b8346
tree566a763975d8065e23becdb275aee2d3bfc97ce7
parent007e813076ec3db6147c2e9a3190039198daa0fc
net/macb: only probe queues once and use stored values

When merging at91_ether and macb driver during 2b0e952a67ac (net/macb: merge
at91_ether driver into macb driver) the probe function has been split. The code
dealing with initialization of queues is now moved in macb_init() which needs
information computed in the parent macb_probe() function.
So, add the queue_mask information to the private structure and use it when
needed in macb_init().

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h