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/pccard/pcic_pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/pccard/pcic_pci.c') diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c index a97588c..d9acf4f 100644 --- a/sys/pccard/pcic_pci.c +++ b/sys/pccard/pcic_pci.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcic_p.c,v 1.8 1999/01/25 12:59:31 torstenb Exp $ + * $Id: pcic_p.c,v 1.9 1999/04/01 15:28:09 nsayer Exp $ */ #include "pci.h" @@ -57,7 +57,11 @@ static struct pci_device pcic_pci_driver = { NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER(pcic_pci, pcic_pci_driver); +#else DATA_SET(pcidevice_set, pcic_pci_driver); +#endif /* COMPAT_PCI_DRIVER */ /* * Return the ID string for the controller if the vendor/product id -- cgit v1.1