From 55bed41956fd54a23882af6ea9c5e9e3c20480a1 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 16 Jul 2020 21:18:32 +0000 Subject: 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. --- sys/dev/ic/qla.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic/qla.c') 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 @@ -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; -- cgit v1.2.3