The branch main has been updated by imp:

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

commit bd69852be14cac4ff24d3cf31c4f9e90f6e0ded8
Author:     Warner Losh <[email protected]>
AuthorDate: 2021-06-28 22:00:20 +0000
Commit:     Warner Losh <[email protected]>
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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to