Skip to content

Commit b83f237

Browse files
author
Heiko Engel
committed
uio_pci_dma: add PCI ID table
1 parent a0ae358 commit b83f237

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

patches/linux_uio/uio_pci_dma.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ probe
314314
dma_device->info.name = DRIVER_NAME;
315315
dma_device->info.version = UIO_PCI_DMA_VERSION;
316316
dma_device->info.irq = pci_device->irq;
317-
dma_device->info.irq_flags = IRQF_SHARED;
318317
dma_device->info.handler = irqhandler;
319318
dma_device->info.irq_flags = msi_enabled ? 0 : IRQF_SHARED;
320319

@@ -481,13 +480,17 @@ remove(struct pci_dev *pci_device)
481480
}
482481

483482

483+
static DEFINE_PCI_DEVICE_TABLE(id_table) = {
484+
{PCI_DEVICE(0x10dc, 0x01a0) }, /* C-RORC PCI ID as registered at CERN */
485+
{ 0, }
486+
};
484487

485488
static
486489
struct pci_driver
487490
driver =
488491
{
489492
.name = DRIVER_NAME,
490-
.id_table = NULL,
493+
.id_table = id_table,
491494
.probe = probe,
492495
.remove = remove
493496
};

0 commit comments

Comments
 (0)