Skip to contentSkip to conversation

habanalabs: add missing MODULE_DEVICE_TABLE

PATCH In review Oded Gabbay 2 participants 2 messages May 3, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 habanalabs: add missing MODULE_DEVICE_TABLE

PCI drivers should use this define to declare their PCI ID table.

---
 drivers/misc/habanalabs/habanalabs_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/habanalabs/habanalabs_drv.c +1 -0
index b670859c677a..5e73b456facd 100644
@@ -47,6 +47,7 @@ static const struct pci_device_id ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_HABANALABS, PCI_IDS_GAUDI), },
 	{ 0, }
 };
+MODULE_DEVICE_TABLE(pci, ids);
 
 /*
  * get_asic_type - translate device id to asic type
Signature · 1 line
2.17.1