summaryrefslogtreecommitdiff
path: root/sys/dev/eisa/aha1742.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/eisa/aha1742.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/eisa/aha1742.c')
-rw-r--r--sys/dev/eisa/aha1742.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/eisa/aha1742.c b/sys/dev/eisa/aha1742.c
index 859dba59b1a..cf2b3bf4d84 100644
--- a/sys/dev/eisa/aha1742.c
+++ b/sys/dev/eisa/aha1742.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aha1742.c,v 1.21 2005/12/03 17:13:22 krw Exp $ */
+/* $OpenBSD: aha1742.c,v 1.22 2006/11/28 23:59:45 dlg Exp $ */
/* $NetBSD: aha1742.c,v 1.61 1996/05/12 23:40:01 mycroft Exp $ */
/*
@@ -475,6 +475,7 @@ ahbattach(parent, self, aux)
{
struct eisa_attach_args *ea = aux;
struct ahb_softc *sc = (void *)self;
+ struct scsibus_attach_args saa;
bus_space_tag_t iot = ea->ea_iot;
bus_space_handle_t ioh;
eisa_chipset_tag_t ec = ea->ea_ec;
@@ -534,10 +535,13 @@ ahbattach(parent, self, aux)
if (intrstr != NULL)
printf("%s\n", intrstr);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sc->sc_link;
+
/*
* ask the adapter what subunits are present
*/
- config_found(self, &sc->sc_link, ahbprint);
+ config_found(self, &saa, ahbprint);
}
/*