Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jun 2021 22:24:05 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bd69852be14c - main - mmc_sim: stop using cam_sim_alloc_dev
Message-ID:  <202106282224.15SMO55N048821@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=bd69852be14cac4ff24d3cf31c4f9e90f6e0ded8

commit bd69852be14cac4ff24d3cf31c4f9e90f6e0ded8
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-06-28 22:00:20 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-06-28 22:13:02 +0000

    mmc_sim: stop using cam_sim_alloc_dev
    
    Use the vanilla flavor of cam_sim_alloc. Now that sdiob has been
    converted to get the device_t from the cam_path, this data is no longer
    necessary.
    
    Reviewed by:            scottl@
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D30856
---
 sys/cam/mmc/mmc_sim.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/cam/mmc/mmc_sim.c b/sys/cam/mmc/mmc_sim.c
index b9a6a852c07f..2aae157c9542 100644
--- a/sys/cam/mmc/mmc_sim.c
+++ b/sys/cam/mmc/mmc_sim.c
@@ -204,9 +204,9 @@ mmc_cam_sim_alloc(device_t dev, const char *name, struct mmc_sim *mmc_sim)
 	snprintf(mtx_name, sizeof(mtx_name), "%s_mtx", name);
 
 	mtx_init(&mmc_sim->mtx, sim_name, NULL, MTX_DEF);
-	mmc_sim->sim = cam_sim_alloc_dev(mmc_cam_sim_default_action,
+	mmc_sim->sim = cam_sim_alloc(mmc_cam_sim_default_action,
 	    mmc_cam_default_poll,
-	    name, mmc_sim, dev,
+	    name, mmc_sim,
 	    &mmc_sim->mtx, 1, 1, mmc_sim->devq);
 
 	if (mmc_sim->sim == NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106282224.15SMO55N048821>