summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_cons.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-13 10:52:22 +0000
committerphk <phk@FreeBSD.org>1999-08-13 10:52:22 +0000
commit3e46cd5b3633f6099768f3979ce2bed84ab3f537 (patch)
tree1dcb5888e64b280218b460f585c208c098177be4 /sys/kern/tty_cons.c
parent7b7ae40370ce27419c2f1c0cda88ea6525a1066d (diff)
downloadFreeBSD-src-3e46cd5b3633f6099768f3979ce2bed84ab3f537.zip
FreeBSD-src-3e46cd5b3633f6099768f3979ce2bed84ab3f537.tar.gz
Register our dev_t with make_dev
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r--sys/kern/tty_cons.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c
index 4696af8..4310e4d 100644
--- a/sys/kern/tty_cons.c
+++ b/sys/kern/tty_cons.c
@@ -36,15 +36,10 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
- * $Id: tty_cons.c,v 1.71 1999/08/09 10:34:58 phk Exp $
+ * $Id: tty_cons.c,v 1.72 1999/08/09 11:02:43 phk Exp $
*/
-#include "opt_devfs.h"
-
#include <sys/param.h>
-#ifdef DEVFS
-#include <sys/devfsext.h>
-#endif /*DEVFS*/
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/kernel.h>
@@ -106,9 +101,6 @@ static d_close_t *cn_phys_close; /* physical device close function */
static d_open_t *cn_phys_open; /* physical device open function */
struct consdev *cn_tab; /* physical console device info */
static struct tty *cn_tp; /* physical console tty struct */
-#ifdef DEVFS
-static void *cn_devfs_token; /* represents the devfs entry */
-#endif /* DEVFS */
CONS_DRIVER(cons, NULL, NULL, NULL, NULL, NULL, NULL);
@@ -440,10 +432,7 @@ cn_drvinit(void *unused)
{
cdevsw_add(&cn_cdevsw);
-#ifdef DEVFS
- cn_devfs_token = devfs_add_devswf(&cn_cdevsw, 0, DV_CHR,
- UID_ROOT, GID_WHEEL, 0600, "console");
-#endif
+ make_dev (&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console");
}
SYSINIT(cndev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,cn_drvinit,NULL)
OpenPOWER on IntegriCloud