diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
commit | 9dcbe2404a244059708f3bbc8cbfa0a14887c4ea (patch) | |
tree | 627cf9c78fb38268a3abc09deb78d86c316d87e6 /sys/pci/meteor.c | |
parent | d9183205179005f7582d41a23d4588b0b1140298 (diff) | |
download | src-9dcbe2404a244059708f3bbc8cbfa0a14887c4ea.tar.gz src-9dcbe2404a244059708f3bbc8cbfa0a14887c4ea.zip |
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().
Notes
Notes:
svn path=/head/; revision=50254
Diffstat (limited to 'sys/pci/meteor.c')
-rw-r--r-- | sys/pci/meteor.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c index f96c1e2d0143..47960c11d896 100644 --- a/sys/pci/meteor.c +++ b/sys/pci/meteor.c @@ -147,7 +147,6 @@ #include "meteor.h" -#include "opt_devfs.h" #include "opt_meteor.h" #include <sys/param.h> @@ -156,9 +155,6 @@ #include <sys/kernel.h> #include <sys/signalvar.h> #include <sys/mman.h> -#ifdef DEVFS -#include <sys/devfsext.h> -#endif /* DEVFS */ #include <sys/uio.h> #if defined(METEOR_FreeBSD_210) @@ -1126,10 +1122,7 @@ met_attach(pcici_t tag, int unit) mtr->flags |= METEOR_INITALIZED | METEOR_AUTOMODE | METEOR_DEV0 | METEOR_RGB16; -#ifdef DEVFS - mtr->devfs_token = devfs_add_devswf(&meteor_cdevsw, unit, - DV_CHR, 0, 0, 0644, "meteor"); -#endif + make_dev(&meteor_cdevsw, unit, 0, 0, 0644, "meteor"); } #define UNIT(x) ((x) & 0x07) |