From 7c906f3f934304e934edddb2203c9b5affda989b Mon Sep 17 00:00:00 2001 From: macallan Date: Wed, 11 Apr 2007 05:01:39 +0000 Subject: [PATCH] return 100 in match() so we beat genfb --- sys/dev/sbus/cgsix_sbus.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/dev/sbus/cgsix_sbus.c b/sys/dev/sbus/cgsix_sbus.c index 2c0fc13d89c8..eb6a6bfc367d 100644 --- a/sys/dev/sbus/cgsix_sbus.c +++ b/sys/dev/sbus/cgsix_sbus.c @@ -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 -__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 #include @@ -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,