Add MODULE_DEVICE_TABLE to autoload ajantv2 when PCIe hardware is attached

pull/30/head
Harry Mallon 2022-08-26 16:26:55 +01:00
parent 93a811d321
commit ca295c6adc
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);