From 943622e7237694bb7ff1cc335f717ba5980b2eac Mon Sep 17 00:00:00 2001 From: reinoud Date: Wed, 25 Aug 2004 13:06:16 +0000 Subject: Delay initialisation of shadow registers. Tested on a Shark. --- sys/dev/ofisa/wdc_ofisa.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 -__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 #include @@ -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 -- cgit