summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-06-24 19:35:11 +0000
committerkrw <krw@openbsd.org>2020-06-24 19:35:11 +0000
commit4ab6e03abeb28abf2eed5cf68f775a48defaf020 (patch)
tree220b75a101ae329e99a698c7d5dcaad53d592687 /sys
parentreplace mixerctl with sndioctl; from benjamin baier (diff)
downloadwireguard-openbsd-4ab6e03abeb28abf2eed5cf68f775a48defaf020.tar.xz
wireguard-openbsd-4ab6e03abeb28abf2eed5cf68f775a48defaf020.zip
Use SDEV_NO_ADAPTER_TARGET instead of '7' to indicate the adapter is
not a target on the bus. adapter_buswidth is 2. ok dlg@ as part of a larger diff.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/atapiscsi/atapiscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c
index a68172798ba..c17a90790b9 100644
--- a/sys/dev/atapiscsi/atapiscsi.c
+++ b/sys/dev/atapiscsi/atapiscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atapiscsi.c,v 1.109 2020/02/13 15:11:32 krw Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.110 2020/06/24 19:35:11 krw Exp $ */
/*
* This code is derived from code with the copyright below.
@@ -219,7 +219,7 @@ atapiscsi_attach(struct device *parent, struct device *self, void *aux)
as->chp = chp;
as->drive = drvp->drive;
as->sc_adapterlink.adapter_softc = as;
- as->sc_adapterlink.adapter_target = 7;
+ as->sc_adapterlink.adapter_target = SDEV_NO_ADAPTER_TARGET;
as->sc_adapterlink.adapter_buswidth = 2;
as->sc_adapterlink.adapter = &atapiscsi_switch;
as->sc_adapterlink.luns = 1;