* [PATCH] add missing pci_disable_device for e1000
@ 2004-09-13 5:27 Kenji Kaneshige
0 siblings, 0 replies; only message in thread
From: Kenji Kaneshige @ 2004-09-13 5:27 UTC (permalink / raw)
To: greg, akpm, linux-kernel
This patch adds pci_disable_device() into e1000_remove().
If your driver decides to stop using the device, it should call
pci_disable_device() to deallocate any IRQ resources, disable PCI
bus-mastering, etc.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
---
linux-2.6.9-rc1-kanesige/drivers/net/e1000/e1000_main.c | 2 ++
1 files changed, 2 insertions(+)
diff -puN drivers/net/e1000/e1000_main.c~add_missing_pci_disable_device_e1000 drivers/net/e1000/e1000_main.c
--- linux-2.6.9-rc1/drivers/net/e1000/e1000_main.c~add_missing_pci_disable_device_e1000 2004-09-13 12:41:28.108862428 +0900
+++ linux-2.6.9-rc1-kanesige/drivers/net/e1000/e1000_main.c 2004-09-13 12:41:28.111792131 +0900
@@ -639,6 +639,8 @@ e1000_remove(struct pci_dev *pdev)
pci_release_regions(pdev);
free_netdev(netdev);
+
+ pci_disable_device(pdev);
}
/**
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-13 5:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-13 5:27 [PATCH] add missing pci_disable_device for e1000 Kenji Kaneshige
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox