summaryrefslogtreecommitdiff
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-01-04 10:59:38 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-01-04 10:59:38 +0000
commit23b70c1ae21553acc791d61475afa4708977ad9c (patch)
tree84c61641d2294c356b3be9be60a905221077f4a7 /sys/kern/subr_bus.c
parentac32f1176b41fd6230977753585bdd293b1c38d7 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r--sys/kern/subr_bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 1a8b8fcc00a3..1c82f83ca576 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -405,8 +405,8 @@ static struct cdev *devctl_dev;
static void
devinit(void)
{
- devctl_dev = make_dev(&dev_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
- "devctl");
+ devctl_dev = make_dev_credf(MAKEDEV_ETERNAL, &dev_cdevsw, 0, NULL,
+ UID_ROOT, GID_WHEEL, 0600, "devctl");
mtx_init(&devsoftc.mtx, "dev mtx", "devd", MTX_DEF);
cv_init(&devsoftc.cv, "dev cv");
TAILQ_INIT(&devsoftc.devq);