dsa: Destroy fixed link phys after the phy has been disconnected
authorAndrew Lunn <andrew@lunn.ch>
Fri, 11 Mar 2016 23:01:38 +0000 (00:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 19:43:11 +0000 (15:43 -0400)
commit3a44514ff979d7b0192a9f67445509f4ea7dfe2f
treedbc89ddc9ca5785600340f1b952f859cbcb694e3
parentb71be352f76ac3c0559feec2fd960ab9c31404c9
dsa: Destroy fixed link phys after the phy has been disconnected

The phy is disconnected from the slave in dsa_slave_destroy(). Don't
destroy fixed link phys until after this, since there can be fixed
linked phys connected to ports.

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