summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-16 13:41:12 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-16 13:41:12 +0000
commitb0a07322f5a6ce5759f5ed1d4550d8a31c4a227d (patch)
treea1477cf3ef975a2282c80434b2665dcd12e55104
parent2cc6cfc63f5d58ded0090f2661679b6227596498 (diff)
Notes
-rw-r--r--sys/pc98/pc98/wd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c
index a74ad8bb26ac..d898259916a4 100644
--- a/sys/pc98/pc98/wd.c
+++ b/sys/pc98/pc98/wd.c
@@ -601,7 +601,7 @@ wdattach(struct isa_device *dvp)
*/
dev = disk_create(lunit, &du->disk, 0, &wd_cdevsw,
&wddisk_cdevsw);
- dev->si_drv1 = &wddrives[lunit];
+ dev->si_drv1 = du;
} else {
free(du, M_TEMP);
@@ -659,7 +659,7 @@ wdstrategy(register struct bio *bp)
bp->bio_flags |= BIO_ERROR;
goto done;
}
- lunit = du->dk_unit;
+ lunit = du->dk_lunit;
#ifdef PC98
outb(0x432,(du->dk_unit)%2);
@@ -773,7 +773,7 @@ wdstart(int ctrlr)
/* obtain controller and drive information */
du = bp->bio_dev->si_drv1;
- lunit = du->dk_unit;
+ lunit = du->dk_lunit;
#ifdef PC98
outb(0x432,(du->dk_unit)%2);