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/sr/if_sr_pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/sr') diff --git a/sys/dev/sr/if_sr_pci.c b/sys/dev/sr/if_sr_pci.c index 41a5ec3..466a639 100644 --- a/sys/dev/sr/if_sr_pci.c +++ b/sys/dev/sr/if_sr_pci.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_sr_p.c,v 1.6 1998/02/09 06:10:52 eivind Exp $ + * $Id: if_sr_p.c,v 1.7 1998/12/14 06:32:56 dillon Exp $ */ #include "pci.h" @@ -67,7 +67,11 @@ static struct pci_device sr_pci_driver = &src_count, NULL}; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER (sr_pci, sr_pci_driver); +#else DATA_SET (pcidevice_set, sr_pci_driver); +#endif /* COMPAT_PCI_DRIVER */ static const char * sr_pci_probe(pcici_t tag, pcidi_t type) -- cgit v1.1