summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qla.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-16 21:18:32 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-16 21:18:32 +0000
commit55bed41956fd54a23882af6ea9c5e9e3c20480a1 (patch)
tree72600dd1e2454e0de6339db57bc4d99e1dfa5356 /sys/dev/ic/qla.c
parent86a6905da6200248b7428132fc88b96cac17e020 (diff)
Access adapter softc via link->bus->sb_adapter_softc.
In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth' via sb_adapter_buswidth. Removes last post-config uses of the copies of bus related information in scsi_link.
Diffstat (limited to 'sys/dev/ic/qla.c')
-rw-r--r--sys/dev/ic/qla.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c
index 96bf47562ca..978082032f0 100644
--- a/sys/dev/ic/qla.c
+++ b/sys/dev/ic/qla.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qla.c,v 1.64 2020/07/11 13:34:06 krw Exp $ */
+/* $OpenBSD: qla.c,v 1.65 2020/07/16 21:18:30 krw Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -942,7 +942,7 @@ qla_intr(void *xsc)
int
qla_scsi_probe(struct scsi_link *link)
{
- struct qla_softc *sc = link->adapter_softc;
+ struct qla_softc *sc = link->bus->sb_adapter_softc;
int rv = 0;
mtx_enter(&sc->sc_port_mtx);
@@ -964,7 +964,7 @@ void
qla_scsi_cmd(struct scsi_xfer *xs)
{
struct scsi_link *link = xs->sc_link;
- struct qla_softc *sc = link->adapter_softc;
+ struct qla_softc *sc = link->bus->sb_adapter_softc;
struct qla_ccb *ccb;
struct qla_iocb_req34 *iocb;
struct qla_ccb_list list;