summaryrefslogtreecommitdiffstats
path: root/drivers/net/tulip/de2104x.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2008-09-13 15:06:42 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 18:48:52 -0400
commit7c0965e614f076331bf4628fae005c844d2f1f69 (patch)
treef85b1facf8cf77f21c9866adf72b7ef868cda878 /drivers/net/tulip/de2104x.c
parentd87798450a7635ab1bcc80271a13ce4a53b016a9 (diff)
downloadlinux-7c0965e614f076331bf4628fae005c844d2f1f69.tar.gz
linux-7c0965e614f076331bf4628fae005c844d2f1f69.tar.bz2
linux-7c0965e614f076331bf4628fae005c844d2f1f69.zip
tulip: Fix dead 21041 ethernet after ifconfig down
The de2104x did a pci_disable_device() in it's close function, but the open function never does a pci_enable_device() and assumes that the device is already enabled. Considering that downing the interface is just a temporary thing the pci_disable_device() isn't a pretty good idea and removing it from the close function just fixes the bug. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Acked-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/tulip/de2104x.c')
-rw-r--r--drivers/net/tulip/de2104x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c
index 9281d06d5aaa..f54c45049d50 100644
--- a/drivers/net/tulip/de2104x.c
+++ b/drivers/net/tulip/de2104x.c
@@ -1418,7 +1418,6 @@ static int de_close (struct net_device *dev)
de_free_rings(de);
de_adapter_sleep(de);
- pci_disable_device(de->pdev);
return 0;
}