Skip to contentSkip to conversation

w6692: replace deprecated pci_find_device

PATCH In review Udo van den Heuvel 2 participants 2 messages Apr 20, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 w6692: replace deprecated pci_find_device

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

Kind regards,
Udo

drivers/isdn/hisax/w6692.c +1 -1
@@ -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) {
#1 lore raw
Quoted 10 lines · On Sun, 20 Apr 2008 12:04:10 +0200 Udo van den Heuvel <[email protected]> wrote:

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

NAK. You can't simply replace it - you need to make correct use of pci_dev_put as well.

Alan