w6692: replace deprecated pci_find_device
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
Signed-off-by Udo van den Heuvel <[email protected]>
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) {
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_deviceSigned-off-by Udo van den Heuvel <[email protected]>
NAK. You can't simply replace it - you need to make correct use of pci_dev_put as well.
Alan