commit | cda5c15b23fb9d683a491e8bd137d11d8552ac02 | [log] [tgz] |
---|---|---|
author | Neil Armstrong <narmstrong@baylibre.com> | Mon Dec 07 13:57:35 2015 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 07 16:35:50 2015 -0500 |
tree | 795c5b3cb40f66415c0237c7602026b08ff78b18 | |
parent | 679fb46c57859b59a70257477bfbdfc7edfac4f5 [diff] |
net: dsa: move dsa slave destroy code to slave.c Move dsa slave dedicated code from dsa_switch_destroy to a new dsa_slave_destroy function in slave.c. Add the netif_carrier_off and phy_disconnect calls in order to correctly cleanup the netdev state and PHY state machine. Signed-off-by: Frode Isaksen <fisaksen@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: David S. Miller <davem@davemloft.net>