summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/com_ebus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/com_ebus.c b/sys/arch/sparc64/dev/com_ebus.c
index 94af5918362..cc3dacc86d7 100644
--- a/sys/arch/sparc64/dev/com_ebus.c
+++ b/sys/arch/sparc64/dev/com_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_ebus.c,v 1.9 2003/06/24 21:54:39 henric Exp $ */
+/* $OpenBSD: com_ebus.c,v 1.10 2004/09/23 18:55:45 miod Exp $ */
/* $NetBSD: com_ebus.c,v 1.6 2001/07/24 19:27:10 eeh Exp $ */
/*
@@ -120,7 +120,7 @@ com_ebus_attach(parent, self, aux)
*/
if (ea->ea_nvaddrs) {
if (bus_space_map(ea->ea_memtag, ea->ea_vaddrs[0], 0,
- BUS_SPACE_MAP_PROMADDRESS, &sc->sc_ioh) == 0) {
+ BUS_SPACE_MAP_PROMADDRESS, &sc->sc_ioh) != 0) {
printf(": can't map register space\n");
return;
}