From d6f4bd18f508c92a26bf83b89c11d5641e61fbeb Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 24 Apr 1999 20:17:05 +0000 Subject: 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. --- sys/dev/hea/eni.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/hea/eni.c') diff --git a/sys/dev/hea/eni.c b/sys/dev/hea/eni.c index 8c3e060..aea0dac 100644 --- a/sys/dev/hea/eni.c +++ b/sys/dev/hea/eni.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: eni.c,v 1.4 1998/12/04 22:54:45 archie Exp $ + * @(#) $Id: eni.c,v 1.5 1998/12/14 06:37:01 dillon Exp $ * */ @@ -42,7 +42,7 @@ #include #ifndef lint -__RCSID("@(#) $Id: eni.c,v 1.4 1998/12/04 22:54:45 archie Exp $"); +__RCSID("@(#) $Id: eni.c,v 1.5 1998/12/14 06:37:01 dillon Exp $"); #endif /* @@ -80,7 +80,11 @@ static struct pci_device eni_pci_device = { #endif }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER (eni_pci, eni_pci_device); +#else DATA_SET ( pcidevice_set, eni_pci_device ); +#endif /* COMPAT_PCI_DRIVER */ #endif /* __FreeBSD__ */ /* -- cgit v1.1