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/vr/if_vr.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/vr') diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 7c4c1d8..a88c6c6 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_vr.c,v 1.18 1999/02/23 06:47:52 wpaul Exp $ + * $Id: if_vr.c,v 1.9 1999/02/23 15:38:24 wpaul Exp $ */ /* @@ -97,7 +97,7 @@ #ifndef lint static const char rcsid[] = - "$Id: if_vr.c,v 1.18 1999/02/23 06:47:52 wpaul Exp $"; + "$Id: if_vr.c,v 1.9 1999/02/23 15:38:24 wpaul Exp $"; #endif /* @@ -1959,4 +1959,8 @@ static struct pci_device vr_device = { &vr_count, NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER(vr, vr_device); +#else DATA_SET(pcidevice_set, vr_device); +#endif /* COMPAT_PCI_DRIVER */ -- cgit v1.1