From a1f85281c0948a550c3f4ae5ec2a2cf0a88e92bb Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 31 Mar 2008 17:56:42 +0000 Subject: if iobase is 0, lm child is not configured by the bios; ok kettenis --- sys/dev/isa/wbsio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/isa') diff --git a/sys/dev/isa/wbsio.c b/sys/dev/isa/wbsio.c index 1690ba8e63b..a987d0c9f1c 100644 --- a/sys/dev/isa/wbsio.c +++ b/sys/dev/isa/wbsio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wbsio.c,v 1.1 2008/02/17 15:04:08 kettenis Exp $ */ +/* $OpenBSD: wbsio.c,v 1.2 2008/03/31 17:56:41 deraadt Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -207,6 +207,9 @@ wbsio_attach(struct device *parent, struct device *self, void *aux) /* Escape from configuration mode */ wbsio_conf_disable(sc->sc_iot, sc->sc_ioh); + if (iobase == 0) + return; + nia = *ia; nia.ia_iobase = iobase; config_found(self, &nia, wbsio_print); -- cgit v1.2.3