diff options
author | Mirko Vogt <mirko@openwrt.org> | 2009-07-04 00:37:22 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2009-07-04 00:37:22 +0000 |
commit | ad5a85f4c5f4a11d32c2147351c81d2b22d3bf45 (patch) | |
tree | 9e519fb4283cd958e6f9bba476100f4c9db6b526 /target | |
parent | 7a576b004e1f9dd0c1be37d0396b20d4f80867f5 (diff) | |
download | upstream-ad5a85f4c5f4a11d32c2147351c81d2b22d3bf45.tar.gz upstream-ad5a85f4c5f4a11d32c2147351c81d2b22d3bf45.tar.bz2 upstream-ad5a85f4c5f4a11d32c2147351c81d2b22d3bf45.zip |
clean interface before shutting it down
SVN-Revision: 16668
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c index b790670ece..a37ef7238c 100644 --- a/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c +++ b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/ar6000/ar6000_drv.c @@ -213,6 +213,7 @@ static void ar6000_cleanup_module(void); int ar6000_init(struct net_device *dev); static int ar6000_open(struct net_device *dev); static int ar6000_close(struct net_device *dev); +static int ar6000_cleanup(struct net_device *dev); static void ar6000_init_control_info(AR_SOFTC_T *ar); static int ar6000_data_tx(struct sk_buff *skb, struct net_device *dev); @@ -984,6 +985,7 @@ ar6000_destroy(struct net_device *dev, unsigned int unregister) unregister_netdev(dev); } else { ar6000_close(dev); + ar6000_cleanup(dev); } free_raw_buffers(ar); @@ -1090,6 +1092,14 @@ ar6000_open(struct net_device *dev) static int ar6000_close(struct net_device *dev) { + /* Stop the transmit queues */ + netif_stop_queue(dev); + return 0; +} + +static int +ar6000_cleanup(struct net_device *dev) +{ AR_SOFTC_T *ar = netdev_priv(dev); /* Stop the transmit queues */ |