summaryrefslogtreecommitdiff
path: root/sys/dev/sdmmc
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/sdmmc
parent056871ecd9a3940fddb99394529c31947383b338 (diff)
give scsi controllers a real attach args to fill in when attaching scsibus.
ok miod@ marco@ deraadt@
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r--sys/dev/sdmmc/sdmmc_scsi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c
index f33299b56e6..0a476127478 100644
--- a/sys/dev/sdmmc/sdmmc_scsi.c
+++ b/sys/dev/sdmmc/sdmmc_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc_scsi.c,v 1.6 2006/10/17 01:26:26 dlg Exp $ */
+/* $OpenBSD: sdmmc_scsi.c,v 1.7 2006/11/28 23:59:45 dlg Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -95,6 +95,7 @@ void sdmmc_scsi_minphys(struct buf *);
void
sdmmc_scsi_attach(struct sdmmc_softc *sc)
{
+ struct scsibus_attach_args saa;
struct sdmmc_scsi_softc *scbus;
struct sdmmc_function *sf;
@@ -137,8 +138,10 @@ sdmmc_scsi_attach(struct sdmmc_softc *sc)
scbus->sc_link.openings = 1;
scbus->sc_link.adapter = &scbus->sc_adapter;
- scbus->sc_child = config_found(&sc->sc_dev, &scbus->sc_link,
- scsiprint);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &scbus->sc_link;
+
+ scbus->sc_child = config_found(&sc->sc_dev, &saa, scsiprint);
if (scbus->sc_child == NULL) {
printf("%s: can't attach scsibus\n", sc->sc_dev.dv_xname);
goto free_ccbs;