From ff584e70faf04177b3d2b50035e4e0031ad7e655 Mon Sep 17 00:00:00 2001 From: scottl 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/hptiop/hptiop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/hptiop/hptiop.c') diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c index c9eddad..9f4a895 100644 --- a/sys/dev/hptiop/hptiop.c +++ b/sys/dev/hptiop/hptiop.c @@ -681,7 +681,7 @@ attach_failed: goto attach_failed; } - if (xpt_bus_register(hba->sim, 0) != CAM_SUCCESS) { + if (xpt_bus_register(hba->sim, dev, 0) != CAM_SUCCESS) { printf("hptiop: xpt_bus_register failed\n"); cam_sim_free(hba->sim, /*free devq*/ TRUE); hba->sim = NULL; -- cgit v1.1