summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authormacallan <macallan@NetBSD.org>2014-04-29 11:16:25 +0000
committermacallan <macallan@NetBSD.org>2014-04-29 11:16:25 +0000
commit14e96539ccaeff9aeae528f484d8aa61c8eeb3d0 (patch)
tree1177cc2adc8b238706c3b3f82b1e1618e0fc3e66 /sys/dev/sbus
parent9ec819b5c1300dd4a3570c335b4b1d4b44d1880a (diff)
return a match score >1 to beat out genfb if present
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/tcx.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/sbus/tcx.c b/sys/dev/sbus/tcx.c
index 87b9191b765..37bc1fd58fd 100644
--- a/sys/dev/sbus/tcx.c
+++ b/sys/dev/sbus/tcx.c
@@ -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 @@ tcxmatch(device_t parent, cfdata_t cf, void *aux)
{
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;
}
/*