summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tx.c
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/pci/if_tx.c
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/pci/if_tx.c')
-rw-r--r--sys/pci/if_tx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c
index b58e44e..63d62ef 100644
--- a/sys/pci/if_tx.c
+++ b/sys/pci/if_tx.c
@@ -1,5 +1,5 @@
/* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */
-/* $Id: if_tx.c,v 1.23 1999/03/31 13:50:52 nsayer Exp $ */
+/* $Id: if_tx.c,v 1.24 1999/04/17 08:36:07 peter Exp $ */
/*-
* Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru)
@@ -392,7 +392,11 @@ static struct pci_device txdevice = {
NULL };
/* Append this driver to pci drivers list */
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (tx, txdevice);
+#else
DATA_SET ( pcidevice_set, txdevice );
+#endif /* COMPAT_PCI_DRIVER */
/* Synopsis: Check if device id corresponds with SMC83C170 id. */
static const char*
OpenPOWER on IntegriCloud