]> git.baikalelectronics.ru Git - kernel.git/commit
ftgmac100: Move the bulk of inits to a separate function
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Apr 2017 02:28:49 +0000 (12:28 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Apr 2017 19:38:04 +0000 (12:38 -0700)
commitbc8eeb775e62a54bf93389a8da1d46ab0fc18dcb
tree4af0e06087cec827ec5321f428a2e3fae4827694
parentaf91cf786e450a50f67dc2b21545585406b1d2c6
ftgmac100: Move the bulk of inits to a separate function

The link monitoring and error handling code will have to
redo the ring inits and HW setup so move the code out of
ftgmac100_open() into a dedicated function.

This forces a bit of re-ordering of ftgmac100_open() but
nothing dramatic.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c