summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-07-04 18:50:55 +0000
committerkrw <krw@openbsd.org>2020-07-04 18:50:55 +0000
commit8242335377bb6d1938a637f7b9867bf4a76658e0 (patch)
tree0261bdd46de83017029ff89f528f39cd853320b6 /sys
parentOur old ksh(1) bug where eval()uating a || compound list would terminate the (diff)
downloadwireguard-openbsd-8242335377bb6d1938a637f7b9867bf4a76658e0.tar.xz
wireguard-openbsd-8242335377bb6d1938a637f7b9867bf4a76658e0.zip
Nestle all sc_link initialization near config_found() invocation.
Diffstat (limited to 'sys')
-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;
/*