Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus Make cgthree(4) match prior to genfb(4). Requir...
details: https://anonhg.NetBSD.org/src/rev/bde8d95a4140
branches: trunk
changeset: 747462:bde8d95a4140
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Sep 16 13:05:07 2009 +0000
description:
Make cgthree(4) match prior to genfb(4). Required by cgthree(4) on SS1+.
diffstat:
sys/dev/sbus/cgthree_sbus.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 0981aa8ff274 -r bde8d95a4140 sys/dev/sbus/cgthree_sbus.c
--- a/sys/dev/sbus/cgthree_sbus.c Wed Sep 16 11:17:19 2009 +0000
+++ b/sys/dev/sbus/cgthree_sbus.c Wed Sep 16 13:05:07 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgthree_sbus.c,v 1.25 2009/05/12 14:43:59 cegger Exp $ */
+/* $NetBSD: cgthree_sbus.c,v 1.26 2009/09/16 13:05:07 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgthree_sbus.c,v 1.25 2009/05/12 14:43:59 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgthree_sbus.c,v 1.26 2009/09/16 13:05:07 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -125,7 +125,10 @@
{
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;
}
/*
Home |
Main Index |
Thread Index |
Old Index