diff options
| author | Mike Smith <msmith@FreeBSD.org> | 2002-01-09 01:00:20 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 2002-01-09 01:00:20 +0000 |
| commit | 92fef27d9721c6c9209d33ac5390fb0747d1899c (patch) | |
| tree | e7cd252bd4a9e5ddd24e7c6875c2500f8c6d83b8 | |
| parent | cd85c8e853582d7399b7c46c66c91ff1ebf31951 (diff) | |
Notes
| -rw-r--r-- | sys/fs/devfs/devfs_devs.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c index f5951e66af97..4db217d1d3bf 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 |
