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/cy_pci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/pci/cy_pci.c') diff --git a/sys/pci/cy_pci.c b/sys/pci/cy_pci.c index 46a4f52..c4f3c89 100644 --- a/sys/pci/cy_pci.c +++ b/sys/pci/cy_pci.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cy_pci.c,v 1.10 1999/01/15 10:00:12 bde Exp $ + * $Id: cy_pci.c,v 1.11 1999/04/15 00:13:20 alex Exp $ */ /* @@ -62,7 +62,11 @@ static struct pci_device cy_device = { &cy_count, NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER(cy_pci, cy_device); +#else DATA_SET(pcidevice_set, cy_device); +#endif /* COMPAT_PCI_DRIVER */ static const char * cy_probe(config_id, device_id) -- cgit v1.1