diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-28 23:59:46 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-28 23:59:46 +0000 |
commit | 2612706dbdedc47a09b3d55694e5a0ae45da5431 (patch) | |
tree | 660420649bfaaad7808081141f49f2a2b02c6c03 /sys/arch/luna88k | |
parent | 056871ecd9a3940fddb99394529c31947383b338 (diff) |
give scsi controllers a real attach args to fill in when attaching scsibus.
ok miod@ marco@ deraadt@
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r-- | sys/arch/luna88k/dev/mb89352.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/luna88k/dev/mb89352.c b/sys/arch/luna88k/dev/mb89352.c index 31a05d64005..aaa17d259cc 100644 --- a/sys/arch/luna88k/dev/mb89352.c +++ b/sys/arch/luna88k/dev/mb89352.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mb89352.c,v 1.6 2005/12/03 18:09:37 krw Exp $ */ +/* $OpenBSD: mb89352.c,v 1.7 2006/11/28 23:59:45 dlg Exp $ */ /* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */ /* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */ @@ -194,7 +194,7 @@ spc_attach(sc, adapter) struct spc_softc *sc; struct scsi_adapter *adapter; { - + struct scsibus_attach_args saa; SPC_TRACE(("spc_attach ")); sc->sc_state = SPC_INIT; @@ -225,10 +225,13 @@ spc_attach(sc, adapter) sc->sc_link.device = &spc_dev; sc->sc_link.openings = 2; + bzero(&saa, sizeof(saa)); + saa.saa_sc_link = &sc->sc_link; + /* * ask the adapter what subunits are present */ - config_found(&sc->sc_dev, &sc->sc_link, scsiprint); + config_found(&sc->sc_dev, &saa, scsiprint); } /* |