net: dsa: complete dsa_switch_destroy
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:40:32 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:08 +0000 (04:56 -0700)
commitcbc5d90b378cd255ffedeb12f5affe243230d47e
treebb19df20f43a227782544adb459aa7c211615713
parente410ddb89ee8e68103ea58938b4972da594e3d2d
net: dsa: complete dsa_switch_destroy

When unbinding dsa, complete the dsa_switch_destroy to unregister the
fixed link phy then cleanly unregister and destroy the net devices.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c