]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: Register netdev before phy
authorAndrew Lunn <andrew@lunn.ch>
Wed, 6 Jan 2016 19:11:20 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2016 19:31:26 +0000 (14:31 -0500)
commite265cbc3cfd0ac2fdfa1248c0a96f90934275fe3
tree2cd405f123e3b39a85e50d015676c48d316a447e
parenta610ba14eae7e962c28d842162b0fe3f15e650f3
dsa: Register netdev before phy

When the phy is connected, an info message is printed. If the netdev
it is attached to has not been registered yet, the name
'uninitialised' in the output. By registering the netdev first, then
connecting they phy, we can avoid this.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c