diff options
author | sos <sos@FreeBSD.org> | 1997-10-12 16:22:01 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1997-10-12 16:22:01 +0000 |
commit | 88c80cb8cc29610f2fab430f6277317f6f1dfc84 (patch) | |
tree | b22e07fa1dc538bc7aa7b7a3e64d8dd7d4b1a273 | |
parent | ce13ade8faafc7aa846f54b8d0364db6f8fb5c22 (diff) | |
download | FreeBSD-src-88c80cb8cc29610f2fab430f6277317f6f1dfc84.zip FreeBSD-src-88c80cb8cc29610f2fab430f6277317f6f1dfc84.tar.gz |
Fix bug when using DEVFS, drives on second controller sisn't appear
in the device filesystem.
Submitted by: Andre Albsmeier <Andre.Albsmeier@mchp.siemens.de>
-rw-r--r-- | sys/i386/isa/wd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c index 29837f2..8765237 100644 --- a/sys/i386/isa/wd.c +++ b/sys/i386/isa/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.139 1997/09/20 07:41:43 dyson Exp $ + * $Id: wd.c,v 1.140 1997/09/21 21:41:49 gibbs Exp $ */ /* TODO: @@ -511,15 +511,15 @@ wdattach(struct isa_device *dvp) wdtimeout(du); #ifdef DEVFS - mynor = dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART); + mynor = dkmakeminor(lunit, WHOLE_DISK_SLICE, RAW_PART); du->dk_bdev = devfs_add_devswf(&wd_bdevsw, mynor, DV_BLK, UID_ROOT, GID_OPERATOR, 0640, - "wd%d", unit); + "wd%d", lunit); du->dk_cdev = devfs_add_devswf(&wd_cdevsw, mynor, DV_CHR, UID_ROOT, GID_OPERATOR, 0640, - "rwd%d", unit); + "rwd%d", lunit); #endif if (dk_ndrive < DK_NDRIVE) { |