diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-03-31 17:56:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-03-31 17:56:42 +0000 |
commit | a1f85281c0948a550c3f4ae5ec2a2cf0a88e92bb (patch) | |
tree | 098d46d069ba5ac94bf563c8d1d10d4eaa5affa4 /sys/dev | |
parent | c94fce08e88c31ecda40c854676a381e69585bb5 (diff) |
if iobase is 0, lm child is not configured by the bios; ok kettenis
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/wbsio.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <kettenis@openbsd.org> * @@ -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); |