summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/dev/com_ioc.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-05-01 13:36:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-05-01 13:36:10 +0000
commitffe637e63e3912746cf6a3cc9ab37e8c0a9c44b1 (patch)
tree23e65194b3204e6b000c886d34b17df85d89e219 /sys/arch/sgi/dev/com_ioc.c
parentc14607a8c6204f88474f5ca4fdd69dc81d6a319b (diff)
Don't forget to bus_space_unmap() after probing for a com chip.
Diffstat (limited to 'sys/arch/sgi/dev/com_ioc.c')
-rw-r--r--sys/arch/sgi/dev/com_ioc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sgi/dev/com_ioc.c b/sys/arch/sgi/dev/com_ioc.c
index eae07cb9489..abab9713721 100644
--- a/sys/arch/sgi/dev/com_ioc.c
+++ b/sys/arch/sgi/dev/com_ioc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_ioc.c,v 1.1 2008/04/07 22:53:55 miod Exp $ */
+/* $OpenBSD: com_ioc.c,v 1.2 2008/05/01 13:36:08 miod Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -64,6 +64,7 @@ com_ioc_probe(struct device *parent, void *match, void *aux)
if (!(console && !comconsattached)) {
bus_space_map(iot, iaa->iaa_base, COM_NPORTS, 0, &ioh);
rv = comprobe1(iot, ioh);
+ bus_space_unmap(iot, ioh, COM_NPORTS);
} else
rv = 1;