]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ixgbe/ixgbe_ethdev.c
drivers: explicit initialization of pci drivers
[dpdk.git] / drivers / net / ixgbe / ixgbe_ethdev.c
index 0d9f9b27ba414fef14d3b48daac0c608b27308a3..ca65103ec1e923fd8f05aa296697a536a7584dc7 100644 (file)
@@ -1087,7 +1087,7 @@ eth_ixgbevf_dev_init(struct rte_eth_dev *eth_dev)
 }
 
 static struct eth_driver rte_ixgbe_pmd = {
-       {
+       .pci_drv = {
                .name = "rte_ixgbe_pmd",
                .id_table = pci_id_ixgbe_map,
                .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC,
@@ -1100,7 +1100,7 @@ static struct eth_driver rte_ixgbe_pmd = {
  * virtual function driver struct
  */
 static struct eth_driver rte_ixgbevf_pmd = {
-       {
+       .pci_drv = {
                .name = "rte_ixgbevf_pmd",
                .id_table = pci_id_ixgbevf_map,
                .drv_flags = RTE_PCI_DRV_NEED_MAPPING,