summaryrefslogtreecommitdiff
path: root/sys/dev/i2o/iopsp.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/i2o/iopsp.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/i2o/iopsp.c')
-rw-r--r--sys/dev/i2o/iopsp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/i2o/iopsp.c b/sys/dev/i2o/iopsp.c
index 4fc885728a7..4604bd2a94b 100644
--- a/sys/dev/i2o/iopsp.c
+++ b/sys/dev/i2o/iopsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iopsp.c,v 1.8 2005/11/19 02:18:00 pedro Exp $ */
+/* $OpenBSD: iopsp.c,v 1.9 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD$ */
/*-
@@ -136,6 +136,7 @@ iopsp_attach(struct device *parent, struct device *self, void *aux)
struct iop_softc *iop = (struct iop_softc *)parent;
struct iopsp_softc *sc = (struct iopsp_softc *)self;
struct iop_attach_args *ia = (struct iop_attach_args *)aux;
+ struct scsibus_attach_args saa;
struct {
struct i2o_param_op_results pr;
struct i2o_param_read_results prr;
@@ -217,7 +218,10 @@ iopsp_attach(struct device *parent, struct device *self, void *aux)
goto bad;
}
- config_found(&sc->sc_dv, &sc->sc_link, scsiprint);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sc->sc_link;
+
+ config_found(&sc->sc_dv, &saa, scsiprint);
return;
bad: