Drivers are not responsible for setting the rte_device driver reference
since this has been factorized in EAL.
Fixes: f282771a04ef ("bus: factorize driver reference")
Signed-off-by: David Marchand <[email protected]>
---
drivers/dma/idxd/idxd_pci.c | 3 +--
drivers/dma/ioat/ioat_dmadev.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/dma/idxd/idxd_pci.c b/drivers/dma/idxd/idxd_pci.c
index bc4a584495..2b35d77613 100644
--- a/drivers/dma/idxd/idxd_pci.c
+++ b/drivers/dma/idxd/idxd_pci.c
@@ -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];
diff --git a/drivers/dma/ioat/ioat_dmadev.c b/drivers/dma/ioat/ioat_dmadev.c
index 8b7ff5652f..594f44248c 100644
--- a/drivers/dma/ioat/ioat_dmadev.c
+++ b/drivers/dma/ioat/ioat_dmadev.c
@@ -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);
}
--
2.54.0