summaryrefslogtreecommitdiff
path: root/lib/librte_eal/common/include/rte_bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_eal/common/include/rte_bus.h')
-rw-r--r--lib/librte_eal/common/include/rte_bus.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h
index eb9eded..88f99d5 100644
--- a/lib/librte_eal/common/include/rte_bus.h
+++ b/lib/librte_eal/common/include/rte_bus.h
@@ -325,8 +325,7 @@ enum rte_iova_mode rte_bus_get_iommu_class(void);
* The constructor has higher priority than PMD constructors.
*/
#define RTE_REGISTER_BUS(nm, bus) \
-RTE_INIT_PRIO(businitfn_ ##nm, BUS); \
-static void businitfn_ ##nm(void) \
+RTE_INIT_PRIO(businitfn_ ##nm, BUS) \
{\
(bus).name = RTE_STR(nm);\
rte_bus_register(&bus); \