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/de/if_de.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/de') diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 8728d3992a456..fef317c19fed1 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -1,5 +1,5 @@ /* $NetBSD: if_de.c,v 1.82 1999/02/28 17:08:51 explorer Exp $ */ -/* $Id: if_de.c,v 1.103 1999/04/24 20:13:59 peter Exp $ */ +/* $Id: if_de.c,v 1.104 1999/05/03 09:36:29 dfr Exp $ */ /*- * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) @@ -5378,11 +5378,7 @@ static struct pci_device dedevice = { #endif }; -#ifdef COMPAT_PCI_DRIVER COMPAT_PCI_DRIVER(de, dedevice); -#else -DATA_SET (pcidevice_set, dedevice); -#endif /* COMPAT_PCI_DRIVER */ #endif /* __FreeBSD__ */ #if defined(__bsdi__) -- cgit v1.3