summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/oltr
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-24 20:24:02 +0000
committerpeter <peter@FreeBSD.org>1999-04-24 20:24:02 +0000
commitab2d1f39104f252cd761ef22423c4519c62de0dd (patch)
tree018157207d52eed1eee0c9a95b21ebf74d97316f /sys/contrib/dev/oltr
parentbf0ce86bdff8e9f64ea9e8682cb115dce636d586 (diff)
downloadFreeBSD-src-ab2d1f39104f252cd761ef22423c4519c62de0dd.zip
FreeBSD-src-ab2d1f39104f252cd761ef22423c4519c62de0dd.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/contrib/dev/oltr')
-rw-r--r--sys/contrib/dev/oltr/if_oltr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c
index 0f90512..902250f 100644
--- a/sys/contrib/dev/oltr/if_oltr.c
+++ b/sys/contrib/dev/oltr/if_oltr.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_oltr.c,v 1.2 1999/03/10 17:45:26 julian Exp $
+ * $Id: if_oltr.c,v 1.3 1999/04/21 07:02:19 peter Exp $
*/
@@ -259,7 +259,11 @@ static struct pci_device oltr_device = {
NULL
};
+#ifndef COMPAT_PCI_DRIVER
DATA_SET(pcidevice_set, oltr_device);
+#else
+COMPAT_PCI_DRIVER(oltr_pci, oltr_device);
+#endif /* COMPAT_PCI_DRIVER */
int pci_cards = 0;
#endif /* NPCI */
OpenPOWER on IntegriCloud