From 38a67d80b4a4f2da182a96a140bf985f4ff2ad67 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 24 Apr 1999 20:24:02 +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/contrib/dev/oltr/if_oltr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/contrib/dev') diff --git a/sys/contrib/dev/oltr/if_oltr.c b/sys/contrib/dev/oltr/if_oltr.c index 0f9051259ffa..902250f4a913 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 */ -- cgit v1.3