From 1f6e50b57eef0d041073ccf141c24ed67a28d1de Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 19 Sep 2009 03:49:22 +0000 Subject: [PATCH] Make bwtwo(4) match prior to genfb(4). Required by bwtwo(4) on TME emulating SS2. --- sys/dev/sbus/bwtwo_sbus.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/dev/sbus/bwtwo_sbus.c b/sys/dev/sbus/bwtwo_sbus.c index 7e69009c5643..03fbeefdb50a 100644 --- a/sys/dev/sbus/bwtwo_sbus.c +++ b/sys/dev/sbus/bwtwo_sbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: bwtwo_sbus.c,v 1.27 2009/09/18 12:23:16 tsutsui Exp $ */ +/* $NetBSD: bwtwo_sbus.c,v 1.28 2009/09/19 03:49:22 tsutsui Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. @@ -79,7 +79,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bwtwo_sbus.c,v 1.27 2009/09/18 12:23:16 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bwtwo_sbus.c,v 1.28 2009/09/19 03:49:22 tsutsui Exp $"); #include #include @@ -120,7 +120,10 @@ bwtwomatch_sbus(device_t parent, cfdata_t cf, void *aux) { struct sbus_attach_args *sa = aux; - return (strcmp(cf->cf_name, sa->sa_name) == 0); + if (strcmp(cf->cf_name, sa->sa_name) == 0) + return 100; /* beat genfb(4) */ + + return 0; }