summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-11 23:41:52 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-11 23:41:52 +0000
commit56f8e628c875fac41eaa53d55c86d2f8077169da (patch)
tree49c72909d298a99cf9d3219f6b1b853cd1bc0c75 /sys/dev/ic
parent1e65510040f221e2d8fbe9a45591bfdba9786a6e (diff)
Revert previous. Broke something somehow.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/nvme.c5
-rw-r--r--sys/dev/ic/nvmevar.h3
2 files changed, 5 insertions, 3 deletions
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 <dlg@openbsd.org>
@@ -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 <dlg@openbsd.org>
@@ -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 *);