From b50569b71dfb110a58aa3e83f629115291802a74 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sun, 17 Jun 2007 05:55:54 +0000 Subject: 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. --- sys/dev/mly/mly.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/mly') diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index f9ca34b2b5ba0..d9e78bd7c563e 100644 --- a/sys/dev/mly/mly.c +++ b/sys/dev/mly/mly.c @@ -1950,7 +1950,7 @@ mly_cam_attach(struct mly_softc *sc) 1, devq)) == NULL) { return(ENOMEM); } - if (xpt_bus_register(sc->mly_cam_sim[chn], chn)) { + if (xpt_bus_register(sc->mly_cam_sim[chn], sc->mly_dev, chn)) { mly_printf(sc, "CAM XPT phsyical channel registration failed\n"); return(ENXIO); } @@ -1970,7 +1970,7 @@ mly_cam_attach(struct mly_softc *sc) 0, devq)) == NULL) { return(ENOMEM); } - if (xpt_bus_register(sc->mly_cam_sim[chn], chn)) { + if (xpt_bus_register(sc->mly_cam_sim[chn], sc->mly_dev, chn)) { mly_printf(sc, "CAM XPT virtual channel registration failed\n"); return(ENXIO); } -- cgit v1.3