Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus return a match score >1 to beat out genfb if pr...



details:   https://anonhg.NetBSD.org/src/rev/27eced5f6a0e
branches:  trunk
changeset: 329015:27eced5f6a0e
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Apr 29 11:16:25 2014 +0000

description:
return a match score >1 to beat out genfb if present

diffstat:

 sys/dev/sbus/tcx.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r bf130139a1fe -r 27eced5f6a0e sys/dev/sbus/tcx.c
--- a/sys/dev/sbus/tcx.c        Tue Apr 29 10:56:38 2014 +0000
+++ b/sys/dev/sbus/tcx.c        Tue Apr 29 11:16:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcx.c,v 1.45 2014/03/16 05:20:29 dholland Exp $ */
+/*     $NetBSD: tcx.c,v 1.46 2014/04/29 11:16:25 macallan Exp $ */
 
 /*
  *  Copyright (c) 1996, 1998, 2009 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.45 2014/03/16 05:20:29 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.46 2014/04/29 11:16:25 macallan Exp $");
 
 /*
  * define for cg8 emulation on S24 (24-bit version of tcx) for the SS5;
@@ -226,7 +226,9 @@
 {
        struct sbus_attach_args *sa = aux;
 
-       return (strcmp(sa->sa_name, OBPNAME) == 0);
+       if (strcmp(sa->sa_name, OBPNAME) == 0)
+               return 100;     /* beat genfb */
+       return 0;
 }
 
 /*



Home | Main Index | Thread Index | Old Index