diff --git a/sys/arch/mac68k/obio/esp.c b/sys/arch/mac68k/obio/esp.c index 6df47a59906e..15e8e5092f80 100644 --- a/sys/arch/mac68k/obio/esp.c +++ b/sys/arch/mac68k/obio/esp.c @@ -1,4 +1,4 @@ -/* $NetBSD: esp.c,v 1.23 1999/06/27 23:43:37 briggs Exp $ */ +/* $NetBSD: esp.c,v 1.24 1999/10/19 17:00:41 thorpej Exp $ */ /* * Copyright (c) 1997 Jason R. Thorpe. @@ -306,13 +306,6 @@ espattach(parent, self, aux) /* Really no limit, but since we want to fit into the TCR... */ sc->sc_maxxfer = 8 * 1024; /*64 * 1024; XXX */ - /* - * Now try to attach all the sub-devices - */ - sc->sc_adapter.scsipi_cmd = ncr53c9x_scsi_cmd; - sc->sc_adapter.scsipi_minphys = minphys; - ncr53c9x_attach(sc, &esp_dev); - /* * Configure interrupts. */ @@ -321,6 +314,13 @@ espattach(parent, self, aux) via2_reg(vIFR) = esc->irq_mask; via2_reg(vIER) = 0x80 | esc->irq_mask; } + + /* + * Now try to attach all the sub-devices + */ + sc->sc_adapter.scsipi_cmd = ncr53c9x_scsi_cmd; + sc->sc_adapter.scsipi_minphys = minphys; + ncr53c9x_attach(sc, &esp_dev); } /*