]> git.karo-electronics.de Git - karo-tx-linux.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)
commitbfa0914afa95d44df9e1a1553e0c03a991223db3
tree566a763975d8065e23becdb275aee2d3bfc97ce7
parent34d21e3f399729ca7c89636207fe41c481d99352
net/macb: only probe queues once and use stored values

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