net: dsa: cleanup resources upon module removal
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 7 Dec 2015 12:57:33 +0000 (13:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 21:35:50 +0000 (16:35 -0500)
commitb0dc635d923cd5aafa4e99973f529bf68c582738
tree294a7a7452684e626f7cf06f92f0e237e87e3a53
parent4baee937b8d551c89f61542a575378e407b63415
net: dsa: cleanup resources upon module removal

Make sure that we unassign the master_netdev dsa_ptr to make the packet
processing go through the regular Ethernet receive path.

Suggested-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