Skip to contentSkip to conversation

ip2main.c : replace pci_find_device by pci_get_device

PATCH In review trem 2 participants 2 messages May 16, 2006 – May 17, 2006

Subsystems (2)
lore
Share & tools
lore

trem

author
#0 lore raw

PATCH 1/1 ip2main.c : replace pci_find_device by pci_get_device

From: trem <tremyfr at yahoo.fr <https://lists.osdl.org/mailman/listinfo/kernel-janitors>>

This patch simply change pci_find_device by pci_get_device, because pci_find_device is deprecated.

Signed-off-by trem <tremyfr at yahoo.fr <https://lists.osdl.org/mailman/listinfo/kernel-janitors>>

---

drivers/char/ip2/ip2main.c +1 -1
index 03db1cb..c4311b7 100644
@@ -594,7 +594,7 @@ ip2_loadmain(int *iop, int *irqp, unsign
 #ifdef CONFIG_PCI
                        {
                                struct pci_dev *pci_dev_i = NULL;
-                               pci_dev_i = pci_find_device(PCI_VENDOR_ID_COMPUTONE,
+                               pci_dev_i = pci_get_device(PCI_VENDOR_ID_COMPUTONE,
                                                          PCI_DEVICE_ID_COMPUTONE_IP2EX, pci_dev_i);
                                if (pci_dev_i != NULL) {
                                        unsigned int addr;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 4 lines · trem

From: trem <tremyfr at yahoo.fr <https://lists.osdl.org/mailman/listinfo/kernel-janitors>>

This patch simply change pci_find_device by pci_get_device, because pci_find_device is deprecated.

But what about the reference count leak you just caused? These are not simple changes.

Quoted 1 line
Signed-off-by trem <tremyfr at yahoo.fr <https://lists.osdl.org/mailman/listinfo/kernel-janitors>>

Put full email address in here please, and no web page.

thanks,

greg k-h

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors