From 56f8e628c875fac41eaa53d55c86d2f8077169da Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 11 Jul 2020 23:41:52 +0000 Subject: Revert previous. Broke something somehow. --- sys/dev/ic/nvme.c | 5 +++-- sys/dev/ic/nvmevar.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 5933131d13f..dd3b9aee428 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.78 2020/07/11 20:06:04 krw Exp $ */ +/* $OpenBSD: nvme.c,v 1.79 2020/07/11 23:41:51 krw Exp $ */ /* * Copyright (c) 2014 David Gwynne @@ -373,7 +373,8 @@ nvme_attach(struct nvme_softc *sc) saa.saa_sc_link = &sc->sc_link; - config_found(&sc->sc_dev, &saa, scsiprint); + sc->sc_scsibus = (struct scsibus_softc *)config_found(&sc->sc_dev, + &saa, scsiprint); return (0); diff --git a/sys/dev/ic/nvmevar.h b/sys/dev/ic/nvmevar.h index 08da0f7dbc3..9758d2c01fc 100644 --- a/sys/dev/ic/nvmevar.h +++ b/sys/dev/ic/nvmevar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nvmevar.h,v 1.17 2020/07/11 20:06:04 krw Exp $ */ +/* $OpenBSD: nvmevar.h,v 1.18 2020/07/11 23:41:51 krw Exp $ */ /* * Copyright (c) 2014 David Gwynne @@ -102,6 +102,7 @@ struct nvme_softc { struct scsi_iopool sc_iopool; struct scsi_link sc_link; + struct scsibus_softc *sc_scsibus; }; int nvme_attach(struct nvme_softc *); -- cgit v1.2.3