Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hpc Do nothing if there is no screen.



details:   https://anonhg.NetBSD.org/src/rev/58799870c9a2
branches:  trunk
changeset: 521257:58799870c9a2
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sun Jan 27 11:08:30 2002 +0000

description:
Do nothing if there is no screen.

diffstat:

 sys/dev/hpc/hpcfb.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 4da175a96f3d -r 58799870c9a2 sys/dev/hpc/hpcfb.c
--- a/sys/dev/hpc/hpcfb.c       Sun Jan 27 11:07:38 2002 +0000
+++ b/sys/dev/hpc/hpcfb.c       Sun Jan 27 11:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpcfb.c,v 1.16 2002/01/12 16:45:14 tsutsui Exp $       */
+/*     $NetBSD: hpcfb.c,v 1.17 2002/01/27 11:08:30 takemura Exp $      */
 
 /*-
  * Copyright (c) 1999
@@ -43,13 +43,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.16 2002/01/12 16:45:14 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.17 2002/01/27 11:08:30 takemura Exp $");
 
 #define FBDEBUG
 static const char _copyright[] __attribute__ ((unused)) =
     "Copyright (c) 1999 Shin Takemura.  All rights reserved.";
 static const char _rcsid[] __attribute__ ((unused)) =
-    "$NetBSD: hpcfb.c,v 1.16 2002/01/12 16:45:14 tsutsui Exp $";
+    "$NetBSD: hpcfb.c,v 1.17 2002/01/27 11:08:30 takemura Exp $";
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -626,6 +626,9 @@
 {
        struct hpcfb_softc *sc = arg;
 
+       if (sc->sc_dc == NULL)
+               return; /* You have no screen yet. */
+
        switch (why) {
        case PWR_STANDBY:
                break;



Home | Main Index | Thread Index | Old Index