diff options
author | gibbs <gibbs@FreeBSD.org> | 1998-09-20 05:03:34 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1998-09-20 05:03:34 +0000 |
commit | 503d534291b5d1b4af97dce01d047d5c2cb058a3 (patch) | |
tree | 42ff44d443ce20b9f501413b6504428beffdcdab /sys/cam | |
parent | 69bd3165a246ce1413d484e1674f10aa95cc63aa (diff) | |
download | FreeBSD-src-503d534291b5d1b4af97dce01d047d5c2cb058a3.zip FreeBSD-src-503d534291b5d1b4af97dce01d047d5c2cb058a3.tar.gz |
Only deregister out configuration hook manually if there are no SCSI
busses to configure.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 11 |
1 files changed, 6 insertions, 5 deletions
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 <sys/param.h> #include <sys/systm.h> @@ -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 |