summaryrefslogtreecommitdiffstats
path: root/sys/dev/lnc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
committerpeter <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
commitd6f4bd18f508c92a26bf83b89c11d5641e61fbeb (patch)
tree83fa637897b94fbf0e8ba3471e5bea478adeb79f /sys/dev/lnc
parente7462e4ae57c4f138096d5845ab761b06a08fb0a (diff)
downloadFreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.zip
FreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.tar.gz
Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't
hurt the driver portability to 3.x too much for where drivers are shared.
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r--sys/dev/lnc/if_lnc_pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c
index 27f2048..2715751 100644
--- a/sys/dev/lnc/if_lnc_pci.c
+++ b/sys/dev/lnc/if_lnc_pci.c
@@ -17,7 +17,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: if_lnc_p.c,v 1.6 1998/07/20 17:33:01 msmith Exp $
+ * $Id: if_lnc_p.c,v 1.7 1998/12/14 06:32:55 dillon Exp $
*/
#include "pci.h"
@@ -49,7 +49,11 @@ static struct pci_device lnc_pci_driver = {
NULL
};
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (lnc_pci, lnc_pci_driver);
+#else
DATA_SET (pcidevice_set, lnc_pci_driver);
+#endif /* COMPAT_PCI_DRIVER */
static const char*
lnc_pci_probe (pcici_t tag, pcidi_t type)
OpenPOWER on IntegriCloud