summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-11-29 00:04:40 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-11-29 00:04:40 +0000
commitc22dd90537d6062543fbd52f32ed24c9a905f8a9 (patch)
treebd89e6a6ff02e7a4ad0dad06ed6a4175560e2a2b /sys/dev/pci
parent2612706dbdedc47a09b3d55694e5a0ae45da5431 (diff)
oops, i missed ips when giving scsibus an attach args for drivers to fill
in. dedicated to grange, the most talented man at h2k6
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/ips.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index ee03c27d576..e0178cc1530 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.10 2006/11/28 23:49:50 grange Exp $ */
+/* $OpenBSD: ips.c,v 1.11 2006/11/29 00:04:39 dlg Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -298,6 +298,7 @@ ips_attach(struct device *parent, struct device *self, void *aux)
{
struct ips_softc *sc = (struct ips_softc *)self;
struct pci_attach_args *pa = aux;
+ struct scsibus_attach_args saa;
int bar;
pcireg_t maptype;
bus_size_t iosize;
@@ -395,8 +396,11 @@ ips_attach(struct device *parent, struct device *self, void *aux)
sc->sc_scsi_link.adapter = &ips_scsi_adapter;
sc->sc_scsi_link.adapter_softc = sc;
- sc->sc_scsi_bus = (struct scsibus_softc *)config_found(self,
- &sc->sc_scsi_link, scsiprint);
+ bzero(&saa, sizeof(saa));
+ saa.saa_sc_link = &sc->sc_scsi_link;
+
+ sc->sc_scsi_bus = (struct scsibus_softc *)config_found(self, &saa,
+ scsiprint);
return;
fail3: