Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Prefer this driver over the old ath(4)



details:   https://anonhg.NetBSD.org/src/rev/5d6b348640c7
branches:  trunk
changeset: 785929:5d6b348640c7
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Apr 06 16:52:47 2013 +0000

description:
Prefer this driver over the old ath(4)

diffstat:

 sys/dev/pci/if_athn_pci.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 00aa2fc46961 -r 5d6b348640c7 sys/dev/pci/if_athn_pci.c
--- a/sys/dev/pci/if_athn_pci.c Sat Apr 06 16:50:48 2013 +0000
+++ b/sys/dev/pci/if_athn_pci.c Sat Apr 06 16:52:47 2013 +0000
@@ -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 @@
        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;
 }



Home | Main Index | Thread Index | Old Index