summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wt.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/i386/isa/wt.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/i386/isa/wt.c')
-rw-r--r--sys/i386/isa/wt.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c
index 73ccab3..36f2e01 100644
--- a/sys/i386/isa/wt.c
+++ b/sys/i386/isa/wt.c
@@ -20,7 +20,7 @@
* the original CMU copyright notice.
*
* Version 1.3, Thu Nov 11 12:09:13 MSK 1993
- * $Id: wt.c,v 1.51 1999/05/30 16:52:31 phk Exp $
+ * $Id: wt.c,v 1.52 1999/05/31 11:26:40 phk Exp $
*
*/
@@ -60,7 +60,6 @@
#include "wt.h"
#if NWT > 0
-#include "opt_devfs.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -70,9 +69,6 @@
#include <sys/malloc.h>
#include <sys/mtio.h>
#include <sys/conf.h>
-#ifdef DEVFS
-#include <sys/devfsext.h>
-#endif /*DEVFS*/
#include <machine/clock.h>
@@ -162,9 +158,6 @@ typedef struct {
unsigned short DATAPORT, CMDPORT, STATPORT, CTLPORT, SDMAPORT, RDMAPORT;
unsigned char BUSY, NOEXCEP, RESETMASK, RESETVAL;
unsigned char ONLINE, RESET, REQUEST, IEN;
-#ifdef DEVFS
- void *devfs_token_r;
-#endif
} wtinfo_t;
static wtinfo_t wttab[NWT]; /* tape info by unit number */
@@ -283,11 +276,7 @@ wtattach (struct isa_device *id)
t->dens = -1; /* unknown density */
isa_dmainit(t->chan, 1024);
-#ifdef DEVFS
- t->devfs_token_r =
- devfs_add_devswf(&wt_cdevsw, id->id_unit, DV_CHR, 0, 0,
- 0600, "rwt%d", id->id_unit);
-#endif
+ make_dev(&wt_cdevsw, id->id_unit, 0, 0, 0600, "rwt%d", id->id_unit);
return (1);
}
OpenPOWER on IntegriCloud