Make bwtwo(4) match prior to genfb(4).

Required by bwtwo(4) on TME emulating SS2.
This commit is contained in:
tsutsui 2009-09-19 03:49:22 +00:00
parent 298c91975c
commit 1f6e50b57e
1 changed files with 6 additions and 3 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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;
}