ip2main.c : replace pci_find_device by pci_get_device
Subsystems (2)
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.
---
drivers/char/ip2/ip2main.c +1 -1
@@ -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
Quoted 4 lines · trem
From: trem <tremyfr at yahoo.fr <https://lists.osdl.org/mailman/listinfo/kernel-janitors>>
This patch simply change
pci_find_devicebypci_get_device, becausepci_find_deviceis 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