]> git.baikalelectronics.ru Git - kernel.git/commitdiff
habanalabs: add missing MODULE_DEVICE_TABLE
authorOded Gabbay <oded.gabbay@gmail.com>
Sun, 3 May 2020 12:30:55 +0000 (15:30 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
PCI drivers should use this define to declare their PCI ID table.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs_drv.c

index b670859c677ac05fe157237bdfe62045656d1b56..5e73b456facd95634fc5d80104910acaeec0235c 100644 (file)
@@ -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