pci_find_subsys do not longer exist
This commit is contained in:
parent
0d1253ce86
commit
726e2a033e
|
@ -2815,7 +2815,7 @@ setup_pci(hfc_multi_t *hc)
|
|||
if (debug & DEBUG_HFCMULTI_INIT)
|
||||
printk(KERN_DEBUG "setup_pci(): investigating card entry %d (looking for type %d)\n", i, hc->type);
|
||||
inuse:
|
||||
tmp_dev = pci_find_subsys(id_list[i].vendor_id, id_list[i].device_id, id_list[i].vendor_sub, id_list[i].device_sub, tmp_dev);
|
||||
tmp_dev = pci_get_subsys(id_list[i].vendor_id, id_list[i].device_id, id_list[i].vendor_sub, id_list[i].device_sub, tmp_dev);
|
||||
if (tmp_dev) {
|
||||
/* skip if already in use */
|
||||
list_for_each_entry_safe(hc_tmp, next, &HFCM_obj.ilist, list) {
|
||||
|
|
|
@ -86,6 +86,7 @@ typedef struct wait_queue *wait_queue_head_t;
|
|||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
|
||||
#define OLD_PCI_REGISTER_DRIVER 1
|
||||
#define pci_get_subsys pci_find_subsys
|
||||
#else
|
||||
#undef OLD_PCI_REGISTER_DRIVER
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue