Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/dev fix WSDISPLAYIO_PUTCMAP return value.



details:   https://anonhg.NetBSD.org/src/rev/732d933dbcda
branches:  trunk
changeset: 485948:732d933dbcda
user:      uch <uch%NetBSD.org@localhost>
date:      Tue May 09 10:15:17 2000 +0000

description:
fix WSDISPLAYIO_PUTCMAP return value.

diffstat:

 sys/arch/hpcmips/dev/plumvideo.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r bdc152917979 -r 732d933dbcda sys/arch/hpcmips/dev/plumvideo.c
--- a/sys/arch/hpcmips/dev/plumvideo.c  Tue May 09 09:50:17 2000 +0000
+++ b/sys/arch/hpcmips/dev/plumvideo.c  Tue May 09 10:15:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: plumvideo.c,v 1.8 2000/05/08 21:57:56 uch Exp $ */
+/*     $NetBSD: plumvideo.c,v 1.9 2000/05/09 10:15:17 uch Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 UCHIYAMA Yasushi.  All rights reserved.
@@ -476,7 +476,7 @@
 
                cmap_work_free(r, g, b, rgb);
 
-               return (EINVAL);
+               return (0);
 
        case HPCFBIO_GCONF:
                fbconf = (struct hpcfb_fbconf *)data;
@@ -678,6 +678,7 @@
        /* change palette mode to Display */
        val |= PLUM_VIDEO_PLGMD_MODE_DISPLAY;
        bus_space_write_4(regt, regh, PLUM_VIDEO_PLGMD_REG, val);
+
        /* palette access enable */
        val |= PLUM_VIDEO_PLGMD_PALETTE_ENABLE;
        bus_space_write_4(regt, regh, PLUM_VIDEO_PLGMD_REG, val);



Home | Main Index | Thread Index | Old Index