From 579f45fa601b342ea72b6bfbb3190cf80f376bea Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 9 May 1999 17:07:30 +0000 Subject: Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.) --- sys/dev/ed/if_ed_pci.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/ed') diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c index ee47d80285aae..c96fa25e1918a 100644 --- a/sys/dev/ed/if_ed_pci.c +++ b/sys/dev/ed/if_ed_pci.c @@ -17,7 +17,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: if_ed_p.c,v 1.14 1998/12/14 05:47:27 dillon Exp $ + * $Id: if_ed_p.c,v 1.15 1999/04/24 20:14:00 peter Exp $ */ #include "pci.h" @@ -64,11 +64,7 @@ static struct pci_device ed_pci_driver = { NULL }; -#ifdef COMPAT_PCI_DRIVER COMPAT_PCI_DRIVER (ed_pci, ed_pci_driver); -#else -DATA_SET (pcidevice_set, ed_pci_driver); -#endif /* COMPAT_PCI_DRIVER */ static const char* ed_pci_probe (pcici_t tag, pcidi_t type) -- cgit v1.3