diff options
author | 2020-07-20 16:09:48 +0000 | |
---|---|---|
committer | 2020-07-20 16:09:48 +0000 | |
commit | 7fc4ef3235234d01f908b0811aa579e097c5c5f8 (patch) | |
tree | ccd1d0d90288db79c1b4f9c7038eb247013a80c5 | |
parent | build powerpc version, also (diff) | |
download | wireguard-openbsd-7fc4ef3235234d01f908b0811aa579e097c5c5f8.tar.xz wireguard-openbsd-7fc4ef3235234d01f908b0811aa579e097c5c5f8.zip |
Missed a chunk somewhere along the line. Use our_id vs our_id_b in
appropriate spots. Don't copy one empty/unused scsi_link (channel) to
another empty/unused scsi_link (channel_b)
-rw-r--r-- | sys/dev/ic/aic7xxx_openbsd.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/ic/aic7xxx_openbsd.c b/sys/dev/ic/aic7xxx_openbsd.c index 56701c69fd0..e7fec789d82 100644 --- a/sys/dev/ic/aic7xxx_openbsd.c +++ b/sys/dev/ic/aic7xxx_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic7xxx_openbsd.c,v 1.67 2020/07/20 14:41:13 krw Exp $ */ +/* $OpenBSD: aic7xxx_openbsd.c,v 1.68 2020/07/20 16:09:48 krw Exp $ */ /* $NetBSD: aic7xxx_osm.c,v 1.14 2003/11/02 11:07:44 wiz Exp $ */ /* @@ -75,10 +75,6 @@ ahc_attach(struct ahc_softc *ahc) s = splbio(); - if (ahc->features & AHC_TWIN) { - ahc->sc_channel_b = ahc->sc_channel; - } - #ifndef DEBUG if (bootverbose) { char ahc_info[256]; @@ -107,13 +103,13 @@ ahc_attach(struct ahc_softc *ahc) ahc->sc_child = (struct scsibus_softc *)config_found( (void *)&ahc->sc_dev, &saa, scsiprint); if (ahc->features & AHC_TWIN) { - saa.saa_adapter_target = ahc->our_id; + saa.saa_adapter_target = ahc->our_id_b; ahc->sc_child_b = (struct scsibus_softc *)config_found( (void *)&ahc->sc_dev, &saa, scsiprint); } } else { if (ahc->features & AHC_TWIN) { - saa.saa_adapter_target = ahc->our_id; + saa.saa_adapter_target = ahc->our_id_b; ahc->sc_child = (struct scsibus_softc *)config_found( (void *)&ahc->sc_dev, &saa, scsiprint); } |