aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/advansys/adv_pci.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-04-24 20:17:05 +0000
commit96b3554e5c90242d0c5eea10fc394975d03303a8 (patch)
treedf3ac2ff838e9910e3d3aeba252766e697e2dc6a /sys/dev/advansys/adv_pci.c
parent46f40af05253fcf39fcddabbe20a6b365fe73e4c (diff)
downloadsrc-96b3554e5c90242d0c5eea10fc394975d03303a8.tar.gz
src-96b3554e5c90242d0c5eea10fc394975d03303a8.zip
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.
Notes
Notes: svn path=/head/; revision=46024
Diffstat (limited to 'sys/dev/advansys/adv_pci.c')
-rw-r--r--sys/dev/advansys/adv_pci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/advansys/adv_pci.c b/sys/dev/advansys/adv_pci.c
index dd81e881d686..27bfc0df63ed 100644
--- a/sys/dev/advansys/adv_pci.c
+++ b/sys/dev/advansys/adv_pci.c
@@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: adv_pci.c,v 1.3 1998/12/14 06:32:54 dillon Exp $
+ * $Id: adv_pci.c,v 1.4 1998/12/22 18:14:15 gibbs Exp $
*/
#include <pci.h>
@@ -95,7 +95,11 @@ static struct pci_device adv_pci_driver = {
NULL
};
+#ifdef COMPAT_PCI_DRIVER
+COMPAT_PCI_DRIVER (adv_pci, adv_pci_driver);
+#else
DATA_SET (pcidevice_set, adv_pci_driver);
+#endif /* COMPAT_PCI_DRIVER */
static const char*
advpciprobe(pcici_t tag, pcidi_t type)