summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-09 17:07:30 +0000
committerpeter <peter@FreeBSD.org>1999-05-09 17:07:30 +0000
commit41b420910c7daa4b3ef5861f2a9fc1bdea90e9d6 (patch)
tree872f3d9e8bfcc63217906645609dd7e7ebfc6e0d /sys/dev/bktr
parent71c8afa0dd510576229f130234c59f9d6bf0bb87 (diff)
downloadFreeBSD-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/dev/bktr')
-rw-r--r--sys/dev/bktr/bktr_core.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c
index cb5093f..96533cd 100644
--- a/sys/dev/bktr/bktr_core.c
+++ b/sys/dev/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* $Id: brooktree848.c,v 1.72 1999/04/29 10:15:55 roger Exp $ */
+/* $Id: brooktree848.c,v 1.73 1999/04/30 11:16:30 roger Exp $ */
/* BT848 Driver for Brooktree's Bt848, Bt849, Bt878 and Bt 879 based cards.
The Brooktree BT848 Driver driver is based upon Mark Tinguely and
Jim Lowe's driver for the Matrox Meteor PCI card . The
@@ -527,11 +527,7 @@ static struct pci_device bktr_device = {
&bktr_count
};
-#ifdef COMPAT_PCI_DRIVER
COMPAT_PCI_DRIVER (bktr, bktr_device);
-#else
-DATA_SET (pcidevice_set, bktr_device);
-#endif /* COMPAT_PCI_DRIVER */
static d_open_t bktr_open;
static d_close_t bktr_close;
OpenPOWER on IntegriCloud