summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_devs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/devfs/devfs_devs.c')
-rw-r--r--sys/fs/devfs/devfs_devs.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c
index f5951e6..4db217d 100644
--- a/sys/fs/devfs/devfs_devs.c
+++ b/sys/fs/devfs/devfs_devs.c
@@ -429,7 +429,14 @@ devfs_destroy(dev_t dev)
}
}
-devfs_create_t *devfs_create_hook = devfs_create;
-devfs_destroy_t *devfs_destroy_hook = devfs_destroy;
-int devfs_present = 1;
+static void
+devfs_init(void *junk)
+{
+ devfs_create_hook = devfs_create;
+ devfs_destroy_hook = devfs_destroy;
+ devfs_present = 1;
+}
+
+SYSINIT(devfs, SI_SUB_DRIVERS, SI_ORDER_FIRST, devfs_init, NULL);
+
#endif
OpenPOWER on IntegriCloud