summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-04-06 16:52:47 +0000
committermartin <martin@NetBSD.org>2013-04-06 16:52:47 +0000
commit5a44032cdabe45891a0f11d2847ee15fb6d08ca0 (patch)
tree69b599d7f777d1c580c329b51d389a8c080e529f /sys/dev
parent9d5155fb9b49687ecc5cb6e6831632eb76b1f1b8 (diff)
Prefer this driver over the old ath(4)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_athn_pci.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/pci/if_athn_pci.c b/sys/dev/pci/if_athn_pci.c
index 41ab97af350..0e37afb8a6d 100644
--- a/sys/dev/pci/if_athn_pci.c
+++ b/sys/dev/pci/if_athn_pci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_pci.c,v 1.6 2013/04/05 19:15:08 martin Exp $ */
+/* $NetBSD: if_athn_pci.c,v 1.7 2013/04/06 16:52:47 martin Exp $ */
/* $OpenBSD: if_athn_pci.c,v 1.11 2011/01/08 10:02:32 damien Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.6 2013/04/05 19:15:08 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.7 2013/04/06 16:52:47 martin Exp $");
#include "opt_inet.h"
@@ -115,7 +115,11 @@ athn_pci_match(device_t parent, cfdata_t match, void *aux)
for (i = 0; i < __arraycount(athn_pci_devices); i++) {
if (PCI_VENDOR(pa->pa_id) == athn_pci_devices[i].apd_vendor &&
PCI_PRODUCT(pa->pa_id) == athn_pci_devices[i].apd_product)
- return 1;
+ /*
+ * Match better than 1, we prefer this driver
+ * over ath(4)
+ */
+ return 10;
}
return 0;
}