All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH] habanalabs: add missing MODULE_DEVICE_TABLE
  2020-05-03 14:29 [PATCH] habanalabs: add missing MODULE_DEVICE_TABLE Oded Gabbay
@ 2020-05-03 13:31 ` Tomer Tayar
  0 siblings, 0 replies; 2+ messages in thread
From: Tomer Tayar @ 2020-05-03 13:31 UTC (permalink / raw)
  To: Oded Gabbay, linux-kernel@vger.kernel.org, Omer Shpigelman
  Cc: gregkh@linuxfoundation.org

On Sun, May 3, 2020 at 16:24, Oded Gabbay <oded.gabbay@gmail.com> wrote:
> PCI drivers should use this define to declare their PCI ID table.
> 
> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>

Reviewed-by: Tomer Tayar <ttayar@habana.ai>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] habanalabs: add missing MODULE_DEVICE_TABLE
@ 2020-05-03 14:29 Oded Gabbay
  2020-05-03 13:31 ` Tomer Tayar
  0 siblings, 1 reply; 2+ messages in thread
From: Oded Gabbay @ 2020-05-03 14:29 UTC (permalink / raw)
  To: linux-kernel, oshpigelman, ttayar; +Cc: gregkh

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

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
---
 drivers/misc/habanalabs/habanalabs_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/habanalabs/habanalabs_drv.c b/drivers/misc/habanalabs/habanalabs_drv.c
index b670859c677a..5e73b456facd 100644
--- a/drivers/misc/habanalabs/habanalabs_drv.c
+++ b/drivers/misc/habanalabs/habanalabs_drv.c
@@ -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
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-03 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-03 14:29 [PATCH] habanalabs: add missing MODULE_DEVICE_TABLE Oded Gabbay
2020-05-03 13:31 ` Tomer Tayar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.