event/dlb2: add v2.5 probe
[dpdk.git] / drivers / event / dpaa2 / dpaa2_hw_dpcon.c
index d64e588..acc1fde 100644 (file)
@@ -18,7 +18,7 @@
 #include <rte_cycles.h>
 #include <rte_kvargs.h>
 #include <rte_dev.h>
-#include <rte_ethdev_driver.h>
+#include <ethdev_driver.h>
 
 #include <rte_fslmc.h>
 #include <mc/fsl_dpcon.h>
@@ -48,7 +48,7 @@ rte_dpaa2_create_dpcon_device(int dev_fd __rte_unused,
        }
 
        /* Open the dpcon object */
-       dpcon_node->dpcon.regs = rte_mcp_ptr_list[MC_PORTAL_INDEX];
+       dpcon_node->dpcon.regs = dpaa2_get_mcp_ptr(MC_PORTAL_INDEX);
        ret = dpcon_open(&dpcon_node->dpcon,
                         CMD_PRI_LOW, dpcon_id, &dpcon_node->token);
        if (ret) {