From ca295c6adce69ac18b84942921959a795a6eecc3 Mon Sep 17 00:00:00 2001 From: Harry Mallon Date: Fri, 26 Aug 2022 16:26:55 +0100 Subject: [PATCH] Add MODULE_DEVICE_TABLE to autoload ajantv2 when PCIe hardware is attached --- ajadriver/linux/ntv2driver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ajadriver/linux/ntv2driver.c b/ajadriver/linux/ntv2driver.c index 52e1bef..0d637de 100644 --- a/ajadriver/linux/ntv2driver.c +++ b/ajadriver/linux/ntv2driver.c @@ -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);