From 41b420910c7daa4b3ef5861f2a9fc1bdea90e9d6 Mon Sep 17 00:00:00 2001 From: peter 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/pci/if_tx.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/pci/if_tx.c') diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c index 63d62ef..db5d268 100644 --- a/sys/pci/if_tx.c +++ b/sys/pci/if_tx.c @@ -1,5 +1,5 @@ /* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */ -/* $Id: if_tx.c,v 1.24 1999/04/17 08:36:07 peter Exp $ */ +/* $Id: if_tx.c,v 1.25 1999/04/24 20:14:01 peter Exp $ */ /*- * Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru) @@ -389,14 +389,11 @@ static struct pci_device txdevice = { epic_freebsd_probe, epic_freebsd_attach, &epic_pci_count, - NULL }; + NULL +}; /* Append this driver to pci drivers list */ -#ifdef COMPAT_PCI_DRIVER COMPAT_PCI_DRIVER (tx, txdevice); -#else -DATA_SET ( pcidevice_set, txdevice ); -#endif /* COMPAT_PCI_DRIVER */ /* Synopsis: Check if device id corresponds with SMC83C170 id. */ static const char* -- cgit v1.1