summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>1998-04-16 12:52:42 +0000
committerdrochner <drochner@NetBSD.org>1998-04-16 12:52:42 +0000
commit3cc1fe831c11df60ef21c8c9cd0ce0d0a537f66b (patch)
tree3527a7a47b7fc53d7d31df789f87e905a56d65df /sys/dev
parent6913d5696a3297bce3aee33ebe3b16beb0ae20e4 (diff)
count allocated screens correctly
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/tga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/tga.c b/sys/dev/pci/tga.c
index 368c7f12457..1061da0dd87 100644
--- a/sys/dev/pci/tga.c
+++ b/sys/dev/pci/tga.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.1 1998/04/15 20:16:31 drochner Exp $ */
+/* $NetBSD: tga.c,v 1.2 1998/04/16 12:52:42 drochner Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -444,6 +444,7 @@ tga_alloc_screen(v, type, cookiep, curxp, curyp)
*cookiep = &sc->sc_dc->dc_rcons; /* one and only for now */
*curxp = 0;
*curyp = 0;
+ sc->nscreens++;
return (0);
}