Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sbus CG3 on at least the Classic doesn't have a "mod...



details:   https://anonhg.NetBSD.org/src/rev/6ad8f1347acf
branches:  trunk
changeset: 534789:6ad8f1347acf
user:      soren <soren%NetBSD.org@localhost>
date:      Sat Aug 03 00:59:00 2002 +0000

description:
CG3 on at least the Classic doesn't have a "model" name, so fake one.

diffstat:

 sys/dev/sbus/cgthree_sbus.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d98deb7567f7 -r 6ad8f1347acf sys/dev/sbus/cgthree_sbus.c
--- a/sys/dev/sbus/cgthree_sbus.c       Sat Aug 03 00:55:54 2002 +0000
+++ b/sys/dev/sbus/cgthree_sbus.c       Sat Aug 03 00:59:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgthree_sbus.c,v 1.6 2002/03/11 16:00:55 pk Exp $ */
+/*     $NetBSD: cgthree_sbus.c,v 1.7 2002/08/03 00:59:00 soren Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -89,7 +89,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgthree_sbus.c,v 1.6 2002/03/11 16:00:55 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgthree_sbus.c,v 1.7 2002/08/03 00:59:00 soren Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -190,6 +190,8 @@
 
        isconsole = fb_is_console(node);
        name = PROM_getpropstring(node, "model");
+       if (name == NULL)
+               name = "cgthree";
 
        if (sa->sa_npromvaddrs != 0)
                fb->fb_pixels = (caddr_t)(u_long)sa->sa_promvaddrs[0];



Home | Main Index | Thread Index | Old Index