diff options
author | peter <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-24 20:17:05 +0000 |
commit | d6f4bd18f508c92a26bf83b89c11d5641e61fbeb (patch) | |
tree | 83fa637897b94fbf0e8ba3471e5bea478adeb79f /sys/pci/simos.c | |
parent | e7462e4ae57c4f138096d5845ab761b06a08fb0a (diff) | |
download | FreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.zip FreeBSD-src-d6f4bd18f508c92a26bf83b89c11d5641e61fbeb.tar.gz |
Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't
hurt the driver portability to 3.x too much for where drivers are shared.
Diffstat (limited to 'sys/pci/simos.c')
-rw-r--r-- | sys/pci/simos.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pci/simos.c b/sys/pci/simos.c index 85642b8..d833beb 100644 --- a/sys/pci/simos.c +++ b/sys/pci/simos.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: simos.c,v 1.2 1998/09/26 14:49:26 dfr Exp $ + * $Id: simos.c,v 1.3 1998/12/14 06:32:57 dillon Exp $ */ #include <sys/param.h> @@ -82,7 +82,11 @@ struct pci_device simos_driver = { &simos_unit, NULL }; +#ifdef COMPAT_PCI_DRIVER +COMPAT_PCI_DRIVER (simos, simos_driver); +#else DATA_SET (pcidevice_set, simos_driver); +#endif /* COMPAT_PCI_DRIVER */ static const char * simos_probe(pcici_t tag, pcidi_t type) |