summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pcmcia/wdc_pcmcia.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/wdc_pcmcia.c b/sys/dev/pcmcia/wdc_pcmcia.c
index 945c4953d98..0e1027d6978 100644
--- a/sys/dev/pcmcia/wdc_pcmcia.c
+++ b/sys/dev/pcmcia/wdc_pcmcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc_pcmcia.c,v 1.19 2009/03/29 21:53:53 sthen Exp $ */
+/* $OpenBSD: wdc_pcmcia.c,v 1.20 2009/04/26 22:26:12 kettenis Exp $ */
/* $NetBSD: wdc_pcmcia.c,v 1.19 1999/02/19 21:49:43 abs Exp $ */
/*-
@@ -440,6 +440,10 @@ wdc_pcmcia_activate(self, act)
struct wdc_pcmcia_softc *sc = (struct wdc_pcmcia_softc *)self;
int rv = 0, s;
+ if (sc->sc_iowindow == -1)
+ /* Nothing to activate/deactivate. */
+ return (0);
+
s = splbio();
switch (act) {
case DVACT_ACTIVATE: