Merge pull request #30 from hjmallon/_hm_autodiscover

Add MODULE_DEVICE_TABLE to autoload ajantv2 when PCIe hardware is attached
pull/28/merge
David Schwendeman 2022-09-07 08:50:53 -07:00 committed by GitHub
commit 3a1e91f740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -455,6 +455,10 @@ static struct pci_device_id pci_device_id_tab[] =
{ 0, 0, 0, 0, 0, 0, 0 } // Array terminator
};
#if defined(AJA_CREATE_DEVICE_NODES)
MODULE_DEVICE_TABLE(pci, pci_device_id_tab);
#endif
static struct pci_driver ntv2_driver;
static int reboot_handler(struct notifier_block *this, unsigned long code, void *x);