summaryrefslogtreecommitdiff
path: root/drivers/bus/pci/rte_bus_pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bus/pci/rte_bus_pci.h')
-rw-r--r--drivers/bus/pci/rte_bus_pci.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bus/pci/rte_bus_pci.h b/drivers/bus/pci/rte_bus_pci.h
index 828acc5..0d1955f 100644
--- a/drivers/bus/pci/rte_bus_pci.h
+++ b/drivers/bus/pci/rte_bus_pci.h
@@ -191,8 +191,7 @@ void rte_pci_register(struct rte_pci_driver *driver);
/** Helper for PCI device registration from driver (eth, crypto) instance */
#define RTE_PMD_REGISTER_PCI(nm, pci_drv) \
-RTE_INIT(pciinitfn_ ##nm); \
-static void pciinitfn_ ##nm(void) \
+RTE_INIT(pciinitfn_ ##nm) \
{\
(pci_drv).driver.name = RTE_STR(nm);\
rte_pci_register(&pci_drv); \