]> git.droids-corp.org - dpdk.git/blobdiff - drivers/bus/ifpga/ifpga_bus.c
eal: add function to query device status
[dpdk.git] / drivers / bus / ifpga / ifpga_bus.c
index fca2dbace8d91a69a6158f0c4cb92e9897e1ffd4..2ca1efa72ad6ceb3222fdc53211530ad415a196a 100644 (file)
@@ -301,7 +301,7 @@ ifpga_probe_all_drivers(struct rte_afu_device *afu_dev)
                return -1;
 
        /* Check if a driver is already loaded */
-       if (afu_dev->device.driver != NULL)
+       if (rte_dev_is_probed(&afu_dev->device))
                return 0;
 
        TAILQ_FOREACH(drv, &ifpga_afu_drv_list, next) {
@@ -325,7 +325,7 @@ ifpga_probe(void)
        int ret = 0;
 
        TAILQ_FOREACH(afu_dev, &ifpga_afu_dev_list, next) {
-               if (afu_dev->device.driver)
+               if (rte_dev_is_probed(&afu_dev->device))
                        continue;
 
                ret = ifpga_probe_all_drivers(afu_dev);