summaryrefslogtreecommitdiffstats
path: root/sys/pci/meteor.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-23 20:59:21 +0000
committerphk <phk@FreeBSD.org>1999-08-23 20:59:21 +0000
commit663cbe4fc26065f7af7d10faaee492a626156145 (patch)
tree32e619fadb473bfb85ff8e06044176f2ff323cce /sys/pci/meteor.c
parent2a5ff1f726f814a9e4717afe3f14250f8030cace (diff)
downloadFreeBSD-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/pci/meteor.c')
-rw-r--r--sys/pci/meteor.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index f96c1e2..47960c1 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)
OpenPOWER on IntegriCloud