Skip to contentSkip to conversation

drivers/dma: cleanup PCI probing in Intel drivers

PATCH Applied David Marchand 2 participants 4 messages Oct 9 – Oct 13

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/dma: cleanup PCI probing in Intel drivers

Drivers are not responsible for setting the rte_device driver reference since this has been factorized in EAL.

Fixes f282771a04ef ("bus: factorize driver reference")
---
 drivers/dma/idxd/idxd_pci.c    | 3 +--
 drivers/dma/ioat/ioat_dmadev.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/dma/idxd/idxd_pci.c +1 -2
index bc4a584495..2b35d77613 100644
@@ -323,7 +323,7 @@ init_pci_device(struct rte_pci_device *dev, struct idxd_dmadev *idxd,
 }
 
 static int
-idxd_dmadev_probe_pci(struct rte_pci_driver *drv, struct rte_pci_device *dev)
+idxd_dmadev_probe_pci(struct rte_pci_driver *drv __rte_unused, struct rte_pci_device *dev)
 {
 	struct idxd_dmadev idxd = {0};
 	uint8_t nb_wqs;
@@ -333,7 +333,6 @@ idxd_dmadev_probe_pci(struct rte_pci_driver *drv, struct rte_pci_device *dev)
 
 	rte_pci_device_name(&dev->addr, name, sizeof(name));
 	IDXD_PMD_INFO("Init %s on NUMA node %d", name, dev->device.numa_node);
-	dev->device.driver = &drv->driver;
 
 	if (rte_eal_process_type() != RTE_PROC_PRIMARY) {
 		char qname[32];
drivers/dma/ioat/ioat_dmadev.c +1 -2
index 8b7ff5652f..594f44248c 100644
@@ -714,14 +714,13 @@ ioat_dmadev_destroy(const char *name)
 
 /* Probe DMA device. */
 static int
-ioat_dmadev_probe(struct rte_pci_driver *drv, struct rte_pci_device *dev)
+ioat_dmadev_probe(struct rte_pci_driver *drv __rte_unused, struct rte_pci_device *dev)
 {
 	char name[32];
 
 	rte_pci_device_name(&dev->addr, name, sizeof(name));
 	IOAT_PMD_INFO("Init %s on NUMA node %d", name, dev->device.numa_node);
 
-	dev->device.driver = &drv->driver;
 	return ioat_dmadev_create(name, dev);
 }
 
Signature · 1 line
2.54.0