From 9348ce353fb99f074b98923385c16b4cadce703b Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 25 Oct 2004 00:08:45 +0000 Subject: same fix as for com_gsc wrt unmapped console ports --- sys/arch/hppa/dev/com_dino.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/hppa/dev/com_dino.c b/sys/arch/hppa/dev/com_dino.c index a6f3e4054d9..813ba2e6337 100644 --- a/sys/arch/hppa/dev/com_dino.c +++ b/sys/arch/hppa/dev/com_dino.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_dino.c,v 1.2 2004/04/07 18:24:19 mickey Exp $ */ +/* $OpenBSD: com_dino.c,v 1.3 2004/10/25 00:08:44 mickey Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -92,7 +92,7 @@ com_dino_attach(parent, self, aux) sc->sc_iot = ca->ca_iot; sc->sc_iobase = (bus_addr_t)ca->ca_hpa + IOMOD_DEVOFFSET; - if (sc->sc_iobase == CONADDR) + if (sc->sc_iobase == CONADDR && comconsioh) sc->sc_ioh = comconsioh; else if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS, 0, &sc->sc_ioh)) { -- cgit v1.2.3