From 14e96539ccaeff9aeae528f484d8aa61c8eeb3d0 Mon Sep 17 00:00:00 2001 From: macallan Date: Tue, 29 Apr 2014 11:16:25 +0000 Subject: return a match score >1 to beat out genfb if present --- sys/dev/sbus/tcx.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 -__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; } /* -- cgit