From 419d68e64fbfac71d8cfac0bc849870655508a76 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 6 Apr 2013 16:52:47 +0000 Subject: [PATCH] Prefer this driver over the old ath(4) --- sys/dev/pci/if_athn_pci.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_athn_pci.c b/sys/dev/pci/if_athn_pci.c index 41ab97af350e..0e37afb8a6dc 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 -__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; }