diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-06-24 19:35:12 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-06-24 19:35:12 +0000 |
commit | 368df8e4678a90f0d2e7b69c1e25925142b0f22a (patch) | |
tree | 52ea95a40020749a3c81df1821c5ef2b5616ee66 /sys/dev | |
parent | c4fd744675464b5012841094fc9f665ede7ac9b9 (diff) |
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/dev')
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 4 |
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; |