summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-08-14 23:31:38 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-08-14 23:31:38 +0000
commit1cb8f3d13c77d65e0430f5541e753e7a4e7a9e52 (patch)
tree8409b8c60acb603b5a0c11700ea0f860e66b49b3
parentf15918e35085820b9b815b4470ac29cf2343cc97 (diff)
dont match on nxe boards that dont claim to be network devices.
-rw-r--r--sys/dev/pci/if_nxe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nxe.c b/sys/dev/pci/if_nxe.c
index 4a1fdb78acc..2fdd786f5c8 100644
--- a/sys/dev/pci/if_nxe.c
+++ b/sys/dev/pci/if_nxe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nxe.c,v 1.2 2007/08/14 23:29:49 dlg Exp $ */
+/* $OpenBSD: if_nxe.c,v 1.3 2007/08/14 23:31:37 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -105,6 +105,9 @@ nxe_match(struct device *parent, void *match, void *aux)
{
struct pci_attach_args *pa = aux;
+ if (PCI_CLASS(pa->pa_class) != PCI_CLASS_NETWORK)
+ return (0);
+
return (pci_matchbyid(pa, nxe_devices, sizeofa(nxe_devices)));
}