26 lines
881 B
Diff
26 lines
881 B
Diff
From: Ingo Molnar <mingo@elte.hu>
|
|
Date: Fri, 3 Jul 2009 08:30:18 -0500
|
|
Subject: drivers/net: tulip_remove_one needs to call pci_disable_device()
|
|
|
|
Otherwise the device is not completely shut down.
|
|
|
|
Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
---
|
|
drivers/net/ethernet/dec/tulip/tulip_core.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
Index: linux-3.2/drivers/net/ethernet/dec/tulip/tulip_core.c
|
|
===================================================================
|
|
--- linux-3.2.orig/drivers/net/ethernet/dec/tulip/tulip_core.c
|
|
+++ linux-3.2/drivers/net/ethernet/dec/tulip/tulip_core.c
|
|
@@ -1949,6 +1949,7 @@ static void __devexit tulip_remove_one (
|
|
pci_iounmap(pdev, tp->base_addr);
|
|
free_netdev (dev);
|
|
pci_release_regions (pdev);
|
|
+ pci_disable_device (pdev);
|
|
pci_set_drvdata (pdev, NULL);
|
|
|
|
/* pci_power_off (pdev, -1); */
|