summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_tty.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-19 11:03:07 +0000
committerphk <phk@FreeBSD.org>2003-01-19 11:03:07 +0000
commit24596ddb76743273c5d39821727e4e00d025cb02 (patch)
treea1836e6e7bd999b9e7099048c5c2bd9535ef95cd /sys/kern/tty_tty.c
parent49b60b2ebe504ba8584d684a66b1351307a962cf (diff)
downloadFreeBSD-src-24596ddb76743273c5d39821727e4e00d025cb02.zip
FreeBSD-src-24596ddb76743273c5d39821727e4e00d025cb02.tar.gz
Originally when DEVFS was added, a global variable "devfs_present"
was used to control code which were conditional on DEVFS' precense since this avoided the need for large-scale source pollution with #include "opt_geom.h" Now that we approach making DEVFS standard, replace these tests with an #ifdef to facilitate mechanical removal once DEVFS becomes non-optional. No functional change by this commit.
Diffstat (limited to 'sys/kern/tty_tty.c')
-rw-r--r--sys/kern/tty_tty.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c
index 3a5524e..d962c18 100644
--- a/sys/kern/tty_tty.c
+++ b/sys/kern/tty_tty.c
@@ -361,12 +361,7 @@ ctty_drvinit(unused)
void *unused;
{
- if (devfs_present) {
- EVENTHANDLER_REGISTER(dev_clone, ctty_clone, 0, 1000);
- ctty = make_dev(&ctty_cdevsw, 0, 0, 0, 0666, "ctty");
- } else {
- make_dev(&ctty_cdevsw, 0, 0, 0, 0666, "tty");
- }
+ make_dev(&ctty_cdevsw, 0, 0, 0, 0666, "tty");
}
SYSINIT(cttydev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,ctty_drvinit,NULL)
OpenPOWER on IntegriCloud