summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ofisa/wdc_ofisa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ofisa/wdc_ofisa.c b/sys/dev/ofisa/wdc_ofisa.c
index abf7d5a0a27..f62d162bf2f 100644
--- a/sys/dev/ofisa/wdc_ofisa.c
+++ b/sys/dev/ofisa/wdc_ofisa.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc_ofisa.c,v 1.23 2004/08/20 06:39:38 thorpej Exp $ */
+/* $NetBSD: wdc_ofisa.c,v 1.24 2004/08/25 13:06:16 reinoud Exp $ */
/*
* Copyright 1997, 1998
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_ofisa.c,v 1.23 2004/08/20 06:39:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_ofisa.c,v 1.24 2004/08/25 13:06:16 reinoud Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -148,7 +148,6 @@ wdc_ofisa_attach(struct device *parent, struct device *self, void *aux)
return;
}
}
- wdc_init_shadow_regs(&sc->sc_channel);
sc->sc_ih = isa_intr_establish(aa->ic, intr.irq, intr.share,
IPL_BIO, wdcintr, &sc->sc_channel);
@@ -162,6 +161,8 @@ wdc_ofisa_attach(struct device *parent, struct device *self, void *aux)
sc->sc_channel.ch_atac = &sc->sc_wdcdev.sc_atac;
sc->sc_channel.ch_queue = &sc->sc_chqueue;
+ wdc_init_shadow_regs(&sc->sc_channel);
+
wdcattach(&sc->sc_channel);
#if 0