All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] changing pci api to newer
@ 2007-03-17 12:47 Przemek Lib
  2007-03-17 12:54 ` Przemek Lib
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Przemek Lib @ 2007-03-17 12:47 UTC (permalink / raw)
  To: kernel-janitors

changed pci_find_device to pci_get_device
Signed-of-by Przemyslaw Lib an.przemek@gmail.com
---
I found "delete all pci_find_* functions from the kernel tree. Instead
of pci_find_device use pci_get_device()." on:
http://kernelnewbies.org/KernelJanitors/Todo

and i found pci_find_device in
drivers/isdn/hisax/diva.c
and changed it to pci_get_devices

--- drivers/isdn/hisax/diva.c.origin    2007-03-17 13:30:05.000000000 +0100
+++ drivers/isdn/hisax/diva.c   2007-03-17 13:31:32.000000000 +0100
@@ -1047,21 +1047,21 @@ setup_diva(struct IsdnCard *card)
 #endif
 #ifdef CONFIG_PCI
                cs->subtyp = 0;
-               if ((dev_diva = pci_find_device(PCI_VENDOR_ID_EICON,
+               if ((dev_diva = pci_get_device(PCI_VENDOR_ID_EICON,
                        PCI_DEVICE_ID_EICON_DIVA20, dev_diva))) {
                        if (pci_enable_device(dev_diva))
                                return(0);
                        cs->subtyp = DIVA_PCI;
                        cs->irq = dev_diva->irq;
                        cs->hw.diva.cfg_reg = pci_resource_start(dev_diva, 2);
-               } else if ((dev_diva_u = pci_find_device(PCI_VENDOR_ID_EICON,
+               } else if ((dev_diva_u = pci_get_device(PCI_VENDOR_ID_EICON,
                        PCI_DEVICE_ID_EICON_DIVA20_U, dev_diva_u))) {
                        if (pci_enable_device(dev_diva_u))
                                return(0);
                        cs->subtyp = DIVA_PCI;
                        cs->irq = dev_diva_u->irq;
                        cs->hw.diva.cfg_reg = pci_resource_start(dev_diva_u, 2);
-               } else if ((dev_diva201 = pci_find_device(PCI_VENDOR_ID_EICON,
+               } else if ((dev_diva201 = pci_get_device(PCI_VENDOR_ID_EICON,
                        PCI_DEVICE_ID_EICON_DIVA201, dev_diva201))) {
                        if (pci_enable_device(dev_diva201))
                                return(0);
@@ -1071,7 +1071,7 @@ setup_diva(struct IsdnCard *card)
                                (ulong)
ioremap(pci_resource_start(dev_diva201, 0), 4096);
                        cs->hw.diva.cfg_reg                                 (ulong)
ioremap(pci_resource_start(dev_diva201, 1), 4096);
-               } else if ((dev_diva202 = pci_find_device(PCI_VENDOR_ID_EICON,
+               } else if ((dev_diva202 = pci_get_device(PCI_VENDOR_ID_EICON,
                        PCI_DEVICE_ID_EICON_DIVA202, dev_diva202))) {
                        if (pci_enable_device(dev_diva202))
                                return(0);
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2007-03-18 17:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-17 12:47 [KJ] [PATCH] changing pci api to newer Przemek Lib
2007-03-17 12:54 ` Przemek Lib
2007-03-17 16:33 ` Richard Knutsson
2007-03-18 17:54 ` Greg KH

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.