return 100 in match() so we beat genfb

This commit is contained in:
macallan 2007-04-11 05:01:39 +00:00
parent cea884f98c
commit 7c906f3f93
1 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgsix_sbus.c,v 1.20 2007/03/04 06:02:40 christos Exp $ */
/* $NetBSD: cgsix_sbus.c,v 1.21 2007/04/11 05:01:39 macallan Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.20 2007/03/04 06:02:40 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.21 2007/04/11 05:01:39 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -94,7 +94,7 @@ cgsixmatch(parent, cf, aux)
{
struct sbus_attach_args *sa = aux;
return (strcmp(cf->cf_name, sa->sa_name) == 0);
return (strcmp(cf->cf_name, sa->sa_name) == 0) ? 100 : 0;
}
@ -187,7 +187,10 @@ cgsixattach(parent, self, aux)
isconsole = fb_is_console(node);
/* we need the address of the framebuffer, no matter if we're console or not. */
/*
* we need the address of the framebuffer, no matter if we're console or
* not.
*/
sc->sc_ramsize = prom_getpropint(node, "fbmapped", 1024 * 1024);
if (sbus_bus_map(sa->sa_bustag,
sa->sa_slot,