From: Hanna Linder <hannal@us.ibm.com>
To: lkml <linux-kernel@vger.kernel.org>,
kernel-janitors <kernel-janitors@lists.osdl.org>
Cc: greg@kroah.com, hannal@us.ibm.com, chas@cmf.nrl.navy.mil
Subject: [PATCH 2.6] ambassador.c replace pci_find_device with pci_get_device
Date: Wed, 13 Oct 2004 15:15:59 -0700 [thread overview]
Message-ID: <194130000.1097705759@w-hlinder.beaverton.ibm.com> (raw)
As pci_find_device is going away soon I have converted this file to use
pci_get_device instead. I have compile tested it. If anyone has this ATM card
and could test it that would be great.
Hanna Linder
IBM Linux Technology Center
Signed-off-by: Hanna Linder <hannal@us.ibm.com>
---
diff -Nrup linux-2.6.9-rc4-mm1cln/drivers/atm/ambassador.c linux-2.6.9-rc4-mm1patch/drivers/atm/ambassador.c
--- linux-2.6.9-rc4-mm1cln/drivers/atm/ambassador.c 2004-10-12 14:15:10.000000000 -0700
+++ linux-2.6.9-rc4-mm1patch/drivers/atm/ambassador.c 2004-10-13 13:50:30.070951672 -0700
@@ -2378,7 +2378,7 @@ static int __init amb_probe (void) {
devs = 0;
pci_dev = NULL;
- while ((pci_dev = pci_find_device
+ while ((pci_dev = pci_get_device
(PCI_VENDOR_ID_MADGE, PCI_DEVICE_ID_MADGE_AMBASSADOR, pci_dev)
)) {
if (do_pci_device(pci_dev) == 0)
@@ -2387,7 +2387,7 @@ static int __init amb_probe (void) {
pci_dev = NULL;
- while ((pci_dev = pci_find_device
+ while ((pci_dev = pci_get_device
(PCI_VENDOR_ID_MADGE, PCI_DEVICE_ID_MADGE_AMBASSADOR_BAD, pci_dev)
))
PRINTK (KERN_ERR, "skipped broken (PLX rev 2) card");
next reply other threads:[~2004-10-13 22:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-13 22:15 Hanna Linder [this message]
2004-10-13 22:17 ` [PATCH 2.6] firestream.c " Hanna Linder
2004-10-13 22:33 ` [KJ] " Francois Romieu
2004-10-13 22:18 ` [PATCH 2.6] fore200e.c " Hanna Linder
2004-10-14 8:34 ` [KJ] " Christoph Hellwig
2004-10-14 14:08 ` chas williams (contractor)
2004-10-13 22:19 ` [PATCH 2.6] horizon.c: " Hanna Linder
2004-10-13 22:20 ` [PATCH 2.6] zatm.c: " Hanna Linder
2004-10-13 22:53 ` Francois Romieu
2004-10-13 23:15 ` Hanna Linder
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=194130000.1097705759@w-hlinder.beaverton.ibm.com \
--to=hannal@us.ibm.com \
--cc=chas@cmf.nrl.navy.mil \
--cc=greg@kroah.com \
--cc=kernel-janitors@lists.osdl.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®