Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/vme Ouch! Correct bus_space_unmap() call para...



details:   https://anonhg.NetBSD.org/src/rev/9b30c2895b64
branches:  trunk
changeset: 477559:9b30c2895b64
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Oct 21 15:33:49 1999 +0000

description:
Ouch! Correct bus_space_unmap() call parameter usage.

diffstat:

 sys/arch/atari/vme/et4000.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r b4932029bdb5 -r 9b30c2895b64 sys/arch/atari/vme/et4000.c
--- a/sys/arch/atari/vme/et4000.c       Thu Oct 21 15:32:08 1999 +0000
+++ b/sys/arch/atari/vme/et4000.c       Thu Oct 21 15:33:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: et4000.c,v 1.3 1999/03/31 10:44:15 leo Exp $   */
+/*     $NetBSD: et4000.c,v 1.4 1999/10/21 15:33:49 leo Exp $   */
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -194,14 +194,13 @@
                if (bus_space_map(memt, vat.va_maddr, vat.va_msize,
                                  BUS_SPACE_MAP_LINEAR|BUS_SPACE_MAP_CACHEABLE,
                                  &memh)) {
-                       bus_space_unmap(iot, (caddr_t)vat.va_iobase,
-                                       vat.va_iosize);
+                       bus_space_unmap(iot, ioh, vat.va_iosize);
                        printf("et probe: cannot map memory area\n");
                        return(0);
                }
                found = et_detect(&iot, &memt, &ioh, &memh, vat.va_msize);
-               bus_space_unmap(iot, (caddr_t)vat.va_iobase, vat.va_iosize);
-               bus_space_unmap(memt, (caddr_t)vat.va_maddr, vat.va_msize);
+               bus_space_unmap(iot, ioh, vat.va_iosize);
+               bus_space_unmap(memt, memh, vat.va_msize);
                if (found) {
                        *va = vat;
                        return(1);



Home | Main Index | Thread Index | Old Index