From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
To: greg@kroah.com, akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] add missing pci_disable_device for e1000
Date: Mon, 13 Sep 2004 14:27:05 +0900 [thread overview]
Message-ID: <41452FA9.1080100@jp.fujitsu.com> (raw)
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);
}
/**
_
reply other threads:[~2004-09-13 5:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41452FA9.1080100@jp.fujitsu.com \
--to=kaneshige.kenji@jp.fujitsu.com \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.