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)
commit16b1adbb16c8a52b206092d875030b346b9ce50b
tree41999416a8c29e562c3c9716003952cf6f75dca2
parent75fee59550a9899fd9438ebc0a64c972829a8dd2
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