aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2007-06-17 05:55:54 +0000
committerScott Long <scottl@FreeBSD.org>2007-06-17 05:55:54 +0000
commitb50569b71dfb110a58aa3e83f629115291802a74 (patch)
tree1f069a0af9a8c28e09089c8dc789bcd435a94cce /sys/dev/isp
parent6eb9bbf3299f31b6cbda15bb91fc20ed7c808e35 (diff)
Notes
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_freebsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index 7db7b24749443..14a1d63a7a4bc 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -156,7 +156,7 @@ isp_attach(ispsoftc_t *isp)
}
ISP_LOCK(isp);
- if (xpt_bus_register(sim, primary) != CAM_SUCCESS) {
+ if (xpt_bus_register(sim, isp->isp_dev, primary) != CAM_SUCCESS) {
cam_sim_free(sim, TRUE);
return;
}
@@ -191,7 +191,8 @@ isp_attach(ispsoftc_t *isp)
config_intrhook_disestablish(&isp->isp_osinfo.ehook);
return;
}
- if (xpt_bus_register(sim, secondary) != CAM_SUCCESS) {
+ if (xpt_bus_register(sim, isp->isp_dev, secondary) !=
+ CAM_SUCCESS) {
xpt_bus_deregister(cam_sim_path(isp->isp_sim));
xpt_free_path(isp->isp_path);
cam_sim_free(sim, TRUE);