summaryrefslogtreecommitdiff
path: root/sys/dev/pci/qle.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/pci/qle.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/pci/qle.c')
-rw-r--r--sys/dev/pci/qle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index b0041841253..8a259b89664 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.56 2020/07/11 13:34:06 krw Exp $ */
+/* $OpenBSD: qle.c,v 1.57 2020/07/16 21:18:30 krw Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -1275,7 +1275,7 @@ qle_intr(void *xsc)
int
qle_scsi_probe(struct scsi_link *link)
{
- struct qle_softc *sc = link->adapter_softc;
+ struct qle_softc *sc = link->bus->sb_adapter_softc;
int rv = 0;
mtx_enter(&sc->sc_port_mtx);
@@ -1293,7 +1293,7 @@ void
qle_scsi_cmd(struct scsi_xfer *xs)
{
struct scsi_link *link = xs->sc_link;
- struct qle_softc *sc = link->adapter_softc;
+ struct qle_softc *sc = link->bus->sb_adapter_softc;
struct qle_ccb *ccb;
void *iocb;
struct qle_ccb_list list;