summaryrefslogtreecommitdiff
path: root/sys/dev/ic/siop.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-11-28 23:59:46 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-11-28 23:59:46 +0000
commit2612706dbdedc47a09b3d55694e5a0ae45da5431 (patch)
tree660420649bfaaad7808081141f49f2a2b02c6c03 /sys/dev/ic/siop.c
parent056871ecd9a3940fddb99394529c31947383b338 (diff)
give scsi controllers a real attach args to fill in when attaching scsibus.
ok miod@ marco@ deraadt@
Diffstat (limited to 'sys/dev/ic/siop.c')
-rw-r--r--sys/dev/ic/siop.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c
index 16c7caec417..745e6850bec 100644
--- a/sys/dev/ic/siop.c
+++ b/sys/dev/ic/siop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siop.c,v 1.44 2006/05/22 22:22:11 martin Exp $ */
+/* $OpenBSD: siop.c,v 1.45 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */
/*
@@ -186,6 +186,8 @@ void
siop_attach(sc)
struct siop_softc *sc;
{
+ struct scsibus_attach_args saa;
+
if (siop_common_attach(&sc->sc_c) != 0)
return;
@@ -218,7 +220,10 @@ siop_attach(sc)
siop_dump_script(sc);
#endif
- config_found((struct device*)sc, &sc->sc_c.sc_link, scsiprint);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sc->sc_c.sc_link;
+
+ config_found((struct device*)sc, &saa, scsiprint);
}
void