mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6] ambassador.c replace pci_find_device with pci_get_device
@ 2004-10-13 22:15 Hanna Linder
  2004-10-13 22:17 ` [PATCH 2.6] firestream.c " Hanna Linder
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Hanna Linder @ 2004-10-13 22:15 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: greg, hannal, chas


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");


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-10-14 14:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13 22:15 [PATCH 2.6] ambassador.c replace pci_find_device with pci_get_device 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 ` [PATCH 2.6] zatm.c: " Hanna Linder
2004-10-13 22:53   ` Francois Romieu
2004-10-13 23:15     ` Hanna Linder

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®