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/pci/isp_pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/pci/isp_pci.c') diff --git a/sys/pci/isp_pci.c b/sys/pci/isp_pci.c index ee3eba9..b7ce04d 100644 --- a/sys/pci/isp_pci.c +++ b/sys/pci/isp_pci.c @@ -1,4 +1,4 @@ -/* $Id: isp_pci.c,v 1.18 1999/04/04 01:14:02 mjacob Exp $ */ +/* $Id: isp_pci.c,v 1.19 1999/04/11 02:47:31 eivind Exp $ */ /* release_4_3_99 */ /* * PCI specific probe and attach routines for Qlogic ISP SCSI adapters. @@ -271,7 +271,11 @@ static struct pci_device isp_pci_driver = { &ispunit, NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER (isp_pci, isp_pci_driver); +#else DATA_SET (pcidevice_set, isp_pci_driver); +#endif /* COMPAT_PCI_DRIVER */ static PROBETYPE -- cgit v1.1