summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-28 16:12:55 +0000
committerphk <phk@FreeBSD.org>2001-05-28 16:12:55 +0000
commit8a71a60369d4fb20ea1d1c498cc7cf7967873a5f (patch)
treedb0d151c401f0e17f00e6b218712aad49b9b6cca /sys/kern/subr_disk.c
parent5e17a4447b8fb1510b507aa04823e1721b5b8882 (diff)
downloadFreeBSD-src-8a71a60369d4fb20ea1d1c498cc7cf7967873a5f.zip
FreeBSD-src-8a71a60369d4fb20ea1d1c498cc7cf7967873a5f.tar.gz
The disklabel/slice code is more twisted than I thought. Revert to
calling the cdevsw_add() unconditionally.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 3ac9525..6d5a44c 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -124,6 +124,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct
proto->d_ioctl = diskioctl;
proto->d_strategy = diskstrategy;
proto->d_psize = diskpsize;
+ cdevsw_add(proto);
}
if (bootverbose)
OpenPOWER on IntegriCloud