aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/twa
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/twa
parent6eb9bbf3299f31b6cbda15bb91fc20ed7c808e35 (diff)
downloadsrc-b50569b71dfb110a58aa3e83f629115291802a74.tar.gz
src-b50569b71dfb110a58aa3e83f629115291802a74.zip
Prepare for future integration between CAM and newbus. xpt_bus_register
now takes a device_t to be the parent of the bus that is being created. Most SIMs have been updated with a reasonable argument, but a few exceptions just pass NULL for now. This argument isn't used yet and the newbus integration likely won't be ready until after 7.0-RELEASE.
Notes
Notes: svn path=/head/; revision=170872
Diffstat (limited to 'sys/dev/twa')
-rw-r--r--sys/dev/twa/tw_osl_cam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/twa/tw_osl_cam.c b/sys/dev/twa/tw_osl_cam.c
index eb3c57a20b57..aaa1d51bea97 100644
--- a/sys/dev/twa/tw_osl_cam.c
+++ b/sys/dev/twa/tw_osl_cam.c
@@ -121,7 +121,7 @@ tw_osli_cam_attach(struct twa_softc *sc)
*/
tw_osli_dbg_dprintf(3, sc, "Calling xpt_bus_register");
mtx_lock(&Giant);
- if (xpt_bus_register(sc->sim, 0) != CAM_SUCCESS) {
+ if (xpt_bus_register(sc->sim, sc->bus_dev, 0) != CAM_SUCCESS) {
cam_sim_free(sc->sim, TRUE);
sc->sim = NULL; /* so cam_detach will not try to free it */
tw_osli_printf(sc, "error = %d",