summaryrefslogtreecommitdiffstats
path: root/sys/dev/en/if_en_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/en/if_en_pci.c')
-rw-r--r--sys/dev/en/if_en_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c
index 3414edc..39d5d79 100644
--- a/sys/dev/en/if_en_pci.c
+++ b/sys/dev/en/if_en_pci.c
@@ -114,7 +114,11 @@ static struct pci_device endevice = {
NULL,
};
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (en, endevice);
+#else
DATA_SET (pcidevice_set, endevice);
+#endif /* COMPAT_PCI_DRIVER */
/*
* local defines (PCI specific stuff)
OpenPOWER on IntegriCloud