]> 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)
commitecabf2f044609bc052b98f5d783096374e5c2a6b
tree566a763975d8065e23becdb275aee2d3bfc97ce7
parent3d0b5b876a40c76842e7cfa2d4ee030f0c90c060
net/macb: only probe queues once and use stored values

When merging at91_ether and macb driver during a134768bfa96 (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