Re: [PATCH] PCI fixes for 2.6.10-rc1

Greg KH
2004-11-12T23:31:53Z

ChangeSet 1.2026.66.17, 2004/11/05 15:06:47-08:00, hannal@us.ibm.com

[PATCH] cyclades.c: replace pci_find_device

As pci_find_device is going away I've replaced it with pci_get_device.
If someone with this hardware could test it I would appreciate it.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/char/cyclades.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/drivers/char/cyclades.c b/drivers/char/cyclades.c
--- a/drivers/char/cyclades.c 2004-11-12 15:12:50 -08:00
+++ b/drivers/char/cyclades.c 2004-11-12 15:12:50 -08:00
@@ -4725,7 +4725,7 @@
for (i = 0; i < NR_CARDS; i++) {
/* look for a Cyclades card by vendor and device id */
while((device_id = cy_pci_dev_id[dev_index]) != 0) {
- if((pdev = pci_find_device(PCI_VENDOR_ID_CYCLADES,
+ if((pdev = pci_get_device(PCI_VENDOR_ID_CYCLADES,
device_id, pdev)) == NULL) {
dev_index++; /* try next device id */
} else {