cam: Fix GENERIC-MMCCAM build
Fix forgotten argument and type error. MMCCAM isn't enabled by default, and I'd mistakenly thought it was, so these went undetected precommit. Sponsored by: Netflix
This commit is contained in:
parent
9f0febd6a4
commit
a72af82e31
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -2484,7 +2484,7 @@ sdhci_start_slot(struct sdhci_slot *slot)
|
||||
|
||||
mtx_init(&slot->sim_mtx, "sdhcisim", NULL, MTX_DEF);
|
||||
slot->sim = cam_sim_alloc(sdhci_cam_action, sdhci_cam_poll,
|
||||
"sdhci_slot", slot,
|
||||
"sdhci_slot", slot, device_get_unit(slot->dev),
|
||||
&slot->sim_mtx, 1, 1, slot->devq);
|
||||
|
||||
if (slot->sim == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user