From 46590b9967cb72b9ce6b59bd8b861d403a734d29 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Fri, 3 Jul 2020 13:31:48 +0000 Subject: Pass the expected 'scsibus_attach_args *' to scsibus_attach() via config_found(), not a 'scsi_link *'. Part of matthew@'s 2010 work. --- sys/dev/sdmmc/sdmmc_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sdmmc/sdmmc_scsi.c') diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index 3a45a35cfda..2259f7eab29 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.46 2020/02/20 16:26:01 krw Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.47 2020/07/03 13:31:47 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler @@ -146,7 +146,7 @@ sdmmc_scsi_attach(struct sdmmc_softc *sc) scbus->sc_link.pool = &scbus->sc_iopool; bzero(&saa, sizeof(saa)); - saa.scsi_link = &scbus->sc_link; + saa.saa.saa_sc_link = &scbus->sc_link; scbus->sc_child = config_found(&sc->sc_dev, &saa, scsiprint); if (scbus->sc_child == NULL) { -- cgit v1.2.3