Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1145d954 authored by Olof Johansson's avatar Olof Johansson Committed by David S. Miller
Browse files

pasemi_mac: Disable interface on close



Turns out we never disable the interface. It doesn't really cause
any problems since the channel is off, but it's still better to do it
this way.

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef1ea0b4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1287,6 +1287,7 @@ static int pasemi_mac_close(struct net_device *dev)
	pasemi_mac_pause_txchan(mac);
	pasemi_mac_pause_rxint(mac);
	pasemi_mac_pause_rxchan(mac);
	pasemi_mac_intf_disable(mac);

	free_irq(mac->tx->chan.irq, mac->tx);
	free_irq(mac->rx->chan.irq, mac->rx);