diff options
author | 2007-11-25 22:28:53 +0000 | |
---|---|---|
committer | 2007-11-25 22:28:53 +0000 | |
commit | 1ffb82a3870ed59c4859cd3ca3324ae0fcada90c (patch) | |
tree | 044316f05c89c762da3b7c6b46dcacae48fffc1c /sys/scsi/scsiconf.c | |
parent | syc (diff) | |
download | wireguard-openbsd-1ffb82a3870ed59c4859cd3ca3324ae0fcada90c.tar.xz wireguard-openbsd-1ffb82a3870ed59c4859cd3ca3324ae0fcada90c.zip |
dont use the adapter_softc member of scsi_link as a softc anymore. the
"adapter_softc" is simply a way for the adapter to determine what scsibus
it is now dealing with, not a pointer back to the adapters device struct.
ok deraadt@ marco@
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r-- | sys/scsi/scsiconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index b2c4e367216..101228588d6 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.127 2007/11/06 02:49:19 krw Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.128 2007/11/25 22:28:54 dlg Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -149,6 +149,7 @@ scsibusattach(struct device *parent, struct device *self, void *aux) if (!cold) scsi_autoconf = 0; + sc_link_proto->bus = sb; sc_link_proto->scsibus = sb->sc_dev.dv_unit; sb->adapter_link = sc_link_proto; if (sb->adapter_link->adapter_buswidth == 0) |