summaryrefslogtreecommitdiffstats
path: root/sys/arch/mac68k/dev/sbc_obio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mac68k/dev/sbc_obio.c')
-rw-r--r--sys/arch/mac68k/dev/sbc_obio.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/mac68k/dev/sbc_obio.c b/sys/arch/mac68k/dev/sbc_obio.c
index bd292ab0e99..acc2afec409 100644
--- a/sys/arch/mac68k/dev/sbc_obio.c
+++ b/sys/arch/mac68k/dev/sbc_obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbc_obio.c,v 1.13 2006/04/14 09:36:49 martin Exp $ */
+/* $OpenBSD: sbc_obio.c,v 1.14 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: sbc_obio.c,v 1.1 1997/03/01 20:18:59 scottr Exp $ */
/*
@@ -117,6 +117,7 @@ sbc_obio_attach(parent, self, args)
{
struct sbc_softc *sc = (struct sbc_softc *) self;
struct ncr5380_softc *ncr_sc = (struct ncr5380_softc *) sc;
+ struct scsibus_attach_args saa;
extern vaddr_t SCSIBase;
/* Pull in the options flags. */
@@ -238,12 +239,15 @@ sbc_obio_attach(parent, self, args)
ncr_sc->sc_link.flags |= sbc_link_flags;
#endif
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &(ncr_sc->sc_link);
+
/*
* Initialize the SCSI controller itself.
*/
ncr5380_init(ncr_sc);
ncr5380_reset_scsibus(ncr_sc);
- config_found(self, &(ncr_sc->sc_link), scsiprint);
+ config_found(self, &saa, scsiprint);
}
/*