diff options
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx_freebsd.c | 5 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aic7xxx_osm.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_freebsd.c b/sys/dev/aic7xxx/aic7xxx_freebsd.c index c9c8f5a2fefde..98e14747a488b 100644 --- a/sys/dev/aic7xxx/aic7xxx_freebsd.c +++ b/sys/dev/aic7xxx/aic7xxx_freebsd.c @@ -146,7 +146,8 @@ ahc_attach(struct ahc_softc *ahc) /* * Construct our first channel SIM entry */ - sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, ahc->unit, + sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, + device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim == NULL) { cam_simq_free(devq); @@ -178,7 +179,7 @@ ahc_attach(struct ahc_softc *ahc) if (ahc->features & AHC_TWIN) { sim2 = cam_sim_alloc(ahc_action, ahc_poll, "ahc", - ahc, ahc->unit, 1, + ahc, device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim2 == NULL) { diff --git a/sys/dev/aic7xxx/aic7xxx_osm.c b/sys/dev/aic7xxx/aic7xxx_osm.c index c9c8f5a2fefde..98e14747a488b 100644 --- a/sys/dev/aic7xxx/aic7xxx_osm.c +++ b/sys/dev/aic7xxx/aic7xxx_osm.c @@ -146,7 +146,8 @@ ahc_attach(struct ahc_softc *ahc) /* * Construct our first channel SIM entry */ - sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, ahc->unit, + sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, + device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim == NULL) { cam_simq_free(devq); @@ -178,7 +179,7 @@ ahc_attach(struct ahc_softc *ahc) if (ahc->features & AHC_TWIN) { sim2 = cam_sim_alloc(ahc_action, ahc_poll, "ahc", - ahc, ahc->unit, 1, + ahc, device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim2 == NULL) { |