[PATCH] w6692: replace deprecated pci_find_device

From: Udo van den Heuvel
Date: Sun Apr 20 2008 - 06:04:32 EST


Hello,

Found this is still necessary for 2.6.25 for the w6692 hisax isdn cards.
Maybe someone has already prepared a patch?
If not you could use this one.


1. replace deprecated pci_find_device

Signed-off-by: Udo van den Heuvel <udovdh@xxxxxxxxx>

Kind regards,
Udo
--- a/drivers/isdn/hisax/w6692.c 2008-04-20 11:57:26.000000000 +0200
+++ b/drivers/isdn/hisax/w6692.c 2008-04-20 11:57:48.000000000 +0200
@@ -1011,7 +1011,7 @@
return (0);

while (id_list[id_idx].vendor_id) {
- dev_w6692 = pci_find_device(id_list[id_idx].vendor_id,
+ dev_w6692 = pci_get_device(id_list[id_idx].vendor_id,
id_list[id_idx].device_id,
dev_w6692);
if (dev_w6692) {