net: dsa: add missing dsa_switch mdiobus remove
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 6 Oct 2015 14:40:25 +0000 (15:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:56:07 +0000 (04:56 -0700)
commite410ddb89ee8e68103ea58938b4972da594e3d2d
tree7c45ef34a509f1d1bba2e0ab8d892ab0ed0a07a4
parent1023d2ec1e8bd63ede9ed1d93ebb797f650859b7
net: dsa: add missing dsa_switch mdiobus remove

To prevent memory leakage on unbinding, add missing mdiobus unregister
and unallocation calls.

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