diff options
author | phk <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
commit | 663cbe4fc26065f7af7d10faaee492a626156145 (patch) | |
tree | 32e619fadb473bfb85ff8e06044176f2ff323cce /sys/coda | |
parent | 2a5ff1f726f814a9e4717afe3f14250f8030cace (diff) | |
download | FreeBSD-src-663cbe4fc26065f7af7d10faaee492a626156145.zip FreeBSD-src-663cbe4fc26065f7af7d10faaee492a626156145.tar.gz |
Convert DEVFS hooks in (most) drivers to make_dev().
Diskslice/label code not yet handled.
Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers)
Add the correct hook for devfs to kern_conf.c
The net result of this excercise is that a lot less files depends on DEVFS,
and devtoname() gets more sensible output in many cases.
A few drivers had minor additional cleanups performed relating to cdevsw
registration.
A few drivers don't register a cdevsw{} anymore, but only use make_dev().
Diffstat (limited to 'sys/coda')
-rw-r--r-- | sys/coda/coda_fbsd.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/coda/coda_fbsd.c b/sys/coda/coda_fbsd.c index 9c349f8..22a5963 100644 --- a/sys/coda/coda_fbsd.c +++ b/sys/coda/coda_fbsd.c @@ -27,12 +27,11 @@ * Mellon the rights to redistribute these changes without encumbrance. * * @(#) src/sys/coda/coda_fbsd.cr,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $ - * $Id: coda_fbsd.c,v 1.14 1999/05/30 16:51:10 phk Exp $ + * $Id: coda_fbsd.c,v 1.15 1999/05/31 11:24:16 phk Exp $ * */ #include "vcoda.h" -#include "opt_devfs.h" #include <sys/param.h> #include <sys/systm.h> @@ -52,13 +51,6 @@ #include <coda/coda_vnops.h> #include <coda/coda_psdev.h> -#ifdef DEVFS -#include <sys/devfsext.h> - -static void *cfs_devfs_token[NVCODA]; -static void *coda_devfs_token[NVCODA]; -#endif - /* From: "Jordan K. Hubbard" <jkh@time.cdrom.com> Subject: Re: New 3.0 SNAPshot CDROM about ready for production.. @@ -101,38 +93,12 @@ int vcdebug = 1; static int codadev_modevent(module_t mod, int type, void *data) { -#ifdef DEVFS - int i; -#endif - static struct cdevsw *oldcdevsw; switch (type) { case MOD_LOAD: cdevsw_add(&codadevsw); -#ifdef DEVFS - /* tmp */ -#undef NVCODA -#define NVCODA 1 - for (i = 0; i < NVCODA; i++) { - cfs_devfs_token[i] = - devfs_add_devswf(&codadevsw, i, - DV_CHR, UID_ROOT, GID_WHEEL, 0666, - "cfs%d", i); - coda_devfs_token[i] = - devfs_add_devswf(&codadevsw, i, - DV_CHR, UID_ROOT, GID_WHEEL, 0666, - "coda%d", i); - } -#endif break; case MOD_UNLOAD: -#ifdef DEVFS - for (i = 0; i < NVCODA; i++) { - devfs_remove_dev(cfs_devfs_token[i]); - devfs_remove_dev(coda_devfs_token[i]); - } -#endif - cdevsw_add(oldcdevsw); break; default: break; |