diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 1999-10-27 12:40:20 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 1999-10-27 12:40:20 +0000 |
| commit | ad940a43b0d84d77f198d7cf6079809065ba8568 (patch) | |
| tree | 731f27038d7b4ab79de8047b9c7d6ff4fd2e4a68 /sys/pc98 | |
| parent | ed52f174ee7c099ceedd0963caab0d385dc62b02 (diff) | |
Notes
Diffstat (limited to 'sys/pc98')
| -rw-r--r-- | sys/pc98/pc98/wfd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pc98/pc98/wfd.c b/sys/pc98/pc98/wfd.c index 4a19d7914610..045d1d86892f 100644 --- a/sys/pc98/pc98/wfd.c +++ b/sys/pc98/pc98/wfd.c @@ -192,7 +192,7 @@ wfdattach (struct atapi *ata, int unit, struct atapi_params *ap, int debug) bufq_init(&t->buf_queue); t->ata = ata; t->unit = unit; - lun = t->lun = wfdnlun++; + lun = t->lun = wfdnlun; t->param = ap; t->flags = F_MEDIA_CHANGED; t->refcnt = 0; @@ -251,10 +251,11 @@ wfdattach (struct atapi *ata, int unit, struct atapi_params *ap, int debug) * Export the drive to the devstat interface. */ devstat_add_entry(&t->device_stats, "wfd", - wfdnlun, t->cap.sector_size, + t->lun, t->cap.sector_size, DEVSTAT_NO_ORDERED_TAGS, DEVSTAT_TYPE_FLOPPY | DEVSTAT_TYPE_IF_IDE, DEVSTAT_PRIORITY_WFD); + wfdnlun++; return (1); } |
