mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hanna Linder <hannal@us.ibm.com>
To: lkml <linux-kernel@vger.kernel.org>,
	kernel-janitors <kernel-janitors@lists.osdl.org>
Cc: Hanna Linder <hannal@us.ibm.com>, greg@kroah.com, chas@cmf.nrl.navy.mil
Subject: [PATCH 2.6] zatm.c: replace pci_find_device with pci_get_device
Date: Wed, 13 Oct 2004 15:20:24 -0700	[thread overview]
Message-ID: <197610000.1097706024@w-hlinder.beaverton.ibm.com> (raw)
In-Reply-To: <194130000.1097705759@w-hlinder.beaverton.ibm.com>


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/zatm.c linux-2.6.9-rc4-mm1patch2/drivers/atm/zatm.c
--- linux-2.6.9-rc4-mm1cln/drivers/atm/zatm.c	2004-10-12 14:15:10.000000000 -0700
+++ linux-2.6.9-rc4-mm1patch2/drivers/atm/zatm.c	2004-10-13 14:53:39.875813760 -0700
@@ -1591,7 +1591,7 @@ static int __init zatm_module_init(void)
 		struct pci_dev *pci_dev;
 
 		pci_dev = NULL;
-		while ((pci_dev = pci_find_device(PCI_VENDOR_ID_ZEITNET,type ?
+		while ((pci_dev = pci_get_device(PCI_VENDOR_ID_ZEITNET,type ?
 		    PCI_DEVICE_ID_ZEITNET_1225 : PCI_DEVICE_ID_ZEITNET_1221,
 		    pci_dev))) {
 			if (pci_enable_device(pci_dev)) break;


  parent reply	other threads:[~2004-10-13 22:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-13 22:15 [PATCH 2.6] ambassador.c " Hanna Linder
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 ` Hanna Linder [this message]
2004-10-13 22:53   ` [PATCH 2.6] zatm.c: " 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=197610000.1097706024@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®