]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
pasemi_mac: Disable interface on close
authorOlof Johansson <olof@lixom.net>
Wed, 23 Jan 2008 19:57:19 +0000 (13:57 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:27:55 +0000 (04:27 -0800)
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: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pasemi_mac.c

index 059c6b04dc8f1df44fef2bf703a4340bbfbd460d..2e39e0285d8f9d2a6a9712ce33249749ede49377 100644 (file)
@@ -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);