diff options
author | peter <peter@FreeBSD.org> | 1999-05-09 17:07:30 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-09 17:07:30 +0000 |
commit | 41b420910c7daa4b3ef5861f2a9fc1bdea90e9d6 (patch) | |
tree | 872f3d9e8bfcc63217906645609dd7e7ebfc6e0d /sys/pci/es1370.c | |
parent | 71c8afa0dd510576229f130234c59f9d6bf0bb87 (diff) | |
download | FreeBSD-src-41b420910c7daa4b3ef5861f2a9fc1bdea90e9d6.zip FreeBSD-src-41b420910c7daa4b3ef5861f2a9fc1bdea90e9d6.tar.gz |
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.)
Diffstat (limited to 'sys/pci/es1370.c')
-rw-r--r-- | sys/pci/es1370.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/pci/es1370.c b/sys/pci/es1370.c index f52afda..14b6518 100644 --- a/sys/pci/es1370.c +++ b/sys/pci/es1370.c @@ -36,7 +36,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: es1370.c,v 1.2 1999/04/24 20:13:58 peter Exp $ + * $Id: es1370.c,v 1.3 1999/05/09 10:43:54 peter Exp $ */ #include "pci.h" @@ -154,11 +154,7 @@ static struct pci_device es_pci_driver = { NULL }; -#ifdef COMPAT_PCI_DRIVER COMPAT_PCI_DRIVER(es_pci, es_pci_driver); -#else -DATA_SET(pcidevice_set, es_pci_driver); -#endif /* COMPAT_PCI_DRIVER */ static snddev_info es_op_desc = { "ENSONIQ AudioPCI", |