diff options
| author | Warner Losh <imp@FreeBSD.org> | 2021-06-28 23:22:35 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2021-06-28 23:22:35 +0000 |
| commit | a72af82e3169fcacfedf9047120679300a4296f8 (patch) | |
| tree | cb03c2bb469c0a930121090cc72e89bd47a93df1 /sys/cam/mmc | |
| parent | 9f0febd6a44cab90659f2a1b98a8bb3f766e18fd (diff) | |
Diffstat (limited to 'sys/cam/mmc')
| -rw-r--r-- | sys/cam/mmc/mmc_sim.c | 2 | ||||
| -rw-r--r-- | sys/cam/mmc/mmc_xpt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/mmc/mmc_sim.c b/sys/cam/mmc/mmc_sim.c index 2aae157c9542..0bb4c850f8eb 100644 --- a/sys/cam/mmc/mmc_sim.c +++ b/sys/cam/mmc/mmc_sim.c @@ -206,7 +206,7 @@ mmc_cam_sim_alloc(device_t dev, const char *name, struct mmc_sim *mmc_sim) mtx_init(&mmc_sim->mtx, sim_name, NULL, MTX_DEF); mmc_sim->sim = cam_sim_alloc(mmc_cam_sim_default_action, mmc_cam_default_poll, - name, mmc_sim, + name, mmc_sim, device_get_unit(dev), &mmc_sim->mtx, 1, 1, mmc_sim->devq); if (mmc_sim->sim == NULL) { diff --git a/sys/cam/mmc/mmc_xpt.c b/sys/cam/mmc/mmc_xpt.c index c94e74876ed7..a649946f096f 100644 --- a/sys/cam/mmc/mmc_xpt.c +++ b/sys/cam/mmc/mmc_xpt.c @@ -419,7 +419,7 @@ mmccam_start_discovery(struct cam_sim *sim) return; } - KASSERT(xpt_path_sim_device(&ccb->ccb_h.path) != NULL, + KASSERT(xpt_path_sim_device(ccb->ccb_h.path) != NULL, ("%s(%s): device is not initialized on sim's path", __func__, cam_sim_name(sim))); xpt_rescan(ccb); |
