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/dpt/dpt_pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/dpt/dpt_pci.c') diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c index 7bf0e26..69ba362 100644 --- a/sys/dev/dpt/dpt_pci.c +++ b/sys/dev/dpt/dpt_pci.c @@ -32,7 +32,7 @@ * dptpci.c: PCI Bus Attachment for DPT SCSI HBAs */ -#ident "$Id: dpt_pci.c,v 1.10 1998/12/07 21:58:46 archie Exp $" +#ident "$Id: dpt_pci.c,v 1.11 1998/12/14 06:32:55 dillon Exp $" #include "opt_devfs.h" #include "opt_dpt.h" @@ -78,7 +78,11 @@ static struct pci_device dpt_pci_driver = NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER(dpt_pci, dpt_pci_driver); +#else DATA_SET(pcidevice_set, dpt_pci_driver); +#endif /* COMPAT_PCI_DRIVER */ /* * Probe the PCI device. -- cgit v1.1