From 503d534291b5d1b4af97dce01d047d5c2cb058a3 Mon Sep 17 00:00:00 2001 From: gibbs Date: Sun, 20 Sep 1998 05:03:34 +0000 Subject: Only deregister out configuration hook manually if there are no SCSI busses to configure. --- sys/cam/cam_xpt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/cam/cam_xpt.c') diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index d0f6b8a..58d11e0 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_xpt.c,v 1.6 1998/09/17 23:58:53 ken Exp $ + * $Id: cam_xpt.c,v 1.7 1998/09/18 19:55:34 ken Exp $ */ #include #include @@ -5368,10 +5368,11 @@ xpt_config(void *arg) /* Scan all installed busses */ xpt_for_all_busses(xptconfigbuscountfunc, NULL); - xpt_for_all_busses(xptconfigfunc, NULL); - - /* Call xpt_finishconfig once in case we dodn't have any busses */ - xpt_finishconfig(xpt_periph, NULL); + if (busses_to_config == 0) { + /* Call manually because we don't have any busses */ + xpt_finishconfig(xpt_periph, NULL); + } else + xpt_for_all_busses(xptconfigfunc, NULL); } static int -- cgit v1.1