]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-sti: refactor the init glue callbacks
authorJoachim Eastwood <manabian@gmail.com>
Tue, 28 Jul 2015 22:09:04 +0000 (00:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2015 07:13:25 +0000 (00:13 -0700)
commitd93df9ecf2d8c390b37729a3d89028d76f52aec3
tree41999416a8c29e562c3c9716003952cf6f75dca2
parent61d769e00dd5178b95cb481dc91b1042e3d55945
stmmac: dwmac-sti: refactor the init glue callbacks

Remove the two platform specific init callbacks and make
them use a common one by creating a function member in
the internal data structure. This allow us to remove the
layer of indirection and simplify the code a bit.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c