Skip to contentSkip to conversation

drm/tdfx: add missing MODULE_DEVICE_TABLE

PATCH New Bixuan Cui 1 participant 1 message May 8, 2021

Subsystems (3)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 drm/tdfx: add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 drivers/gpu/drm/tdfx/tdfx_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tdfx/tdfx_drv.c +1 -0
index 58c185c299f4..c47210f9b491 100644
@@ -44,6 +44,7 @@
 static struct pci_device_id pciidlist[] = {
 	tdfx_PCI_IDS
 };
+MODULE_DEVICE_TABLE(pci, pciidlist);
 
 static const struct file_operations tdfx_driver_fops = {
 	.owner = THIS_MODULE,