summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-04 18:50:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-04 18:50:56 +0000
commite49dafea5d3d2258eda8b5b9eaa5fc68a29e964f (patch)
tree9c24463d36654720d05203ef36f992842609710a /sys/dev
parent70cb33e5b0a824f476f48d429fef96d071cfb121 (diff)
Nestle all sc_link initialization near config_found() invocation.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/wds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/wds.c b/sys/dev/isa/wds.c
index d43972bdba8..0281461d082 100644
--- a/sys/dev/isa/wds.c
+++ b/sys/dev/isa/wds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wds.c,v 1.49 2020/06/27 14:29:45 krw Exp $ */
+/* $OpenBSD: wds.c,v 1.50 2020/07/04 18:50:55 krw Exp $ */
/* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */
#undef WDSDIAG
@@ -281,6 +281,9 @@ wdsattach(struct device *parent, struct device *self, void *aux)
wds_inquire_setup_information(sc);
+ sc->sc_ih = isa_intr_establish(ia->ia_ic, sc->sc_irq, IST_EDGE,
+ IPL_BIO, wdsintr, sc, sc->sc_dev.dv_xname);
+
/*
* fill in the prototype scsi_link.
*/
@@ -293,9 +296,6 @@ wdsattach(struct device *parent, struct device *self, void *aux)
sc->sc_link.openings = 1;
sc->sc_link.pool = &sc->sc_iopool;
- sc->sc_ih = isa_intr_establish(ia->ia_ic, sc->sc_irq, IST_EDGE,
- IPL_BIO, wdsintr, sc, sc->sc_dev.dv_xname);
-
saa.saa_sc_link = &sc->sc_link;
/*