aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-06-22 05:36:13 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-06-22 05:36:13 +0000
commitd884f7143f1c06f88af9f58b0984dfdae57a500f (patch)
tree7dfd16dadb028b0dfd178b942fe41b2f3644cd7c /sys/dev
parent3c218dea5c8b09853c1d8187b627624f8128eefa (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vinum/vinum.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinum.c b/sys/dev/vinum/vinum.c
index 902b10b38962..b9aee957f0c5 100644
--- a/sys/dev/vinum/vinum.c
+++ b/sys/dev/vinum/vinum.c
@@ -52,10 +52,10 @@ extern struct mc malloced[];
STATIC struct cdevsw vinum_cdevsw =
{
vinumopen, vinumclose, physread, physwrite,
- vinumioctl, nostop, nullreset, nodevtotty,
+ vinumioctl, nostop, noreset, nodevtotty,
seltrue, nommap, vinumstrategy, "vinum",
- NULL, -1, vinumdump, vinumsize,
- D_DISK, 0, -1
+ NULL, CDEV_MAJOR, vinumdump, vinumsize,
+ D_DISK, 0, BDEV_MAJOR
};
/* Called by main() during pseudo-device attachment. */
@@ -85,7 +85,7 @@ vinumattach(void *dummy)
daemonq = NULL; /* initialize daemon's work queue */
dqend = NULL;
- cdevsw_add_generic(BDEV_MAJOR, CDEV_MAJOR, &vinum_cdevsw);
+ cdevsw_add(&vinum_cdevsw); /* add the cdevsw entry */
#ifdef DEVFS
#error DEVFS not finished yet
#endif
@@ -236,7 +236,6 @@ vinum_modevent(module_t mod, modeventtype_t type, void *unused)
}
}
#endif
- cdevsw[CDEV_MAJOR] = NULL; /* no cdevsw any more */
log(LOG_INFO, "vinum: unloaded\n"); /* tell the world */
return 0;
default: