summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zaptel.c b/zaptel.c
index 27e429e..d4a3098 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -120,6 +120,7 @@ static devfs_handle_t zaptel_devfs_dir;
static devfs_handle_t channel;
static devfs_handle_t pseudo;
static devfs_handle_t ctl;
+static devfs_handle_t timer;
#endif
/* There is a table like this in the PPP driver, too */
@@ -5683,6 +5684,7 @@ static int __init zt_init(void) {
devfs_register_chrdev(ZT_MAJOR, "zaptel", &zt_fops);
zaptel_devfs_dir = devfs_mk_dir(NULL, "zap", NULL);
if (!zaptel_devfs_dir) return -EBUSY; /* This would be bad */
+ timer = devfs_register(zaptel_devfs_dir, "timer", DEVFS_FL_DEFAULT, ZT_MAJOR, 253, mode, &zt_fops, NULL);
channel = devfs_register(zaptel_devfs_dir, "channel", DEVFS_FL_DEFAULT, ZT_MAJOR, 254, mode, &zt_fops, NULL);
pseudo = devfs_register(zaptel_devfs_dir, "pseudo", DEVFS_FL_DEFAULT, ZT_MAJOR, 255, mode, &zt_fops, NULL);
ctl = devfs_register(zaptel_devfs_dir, "ctl", DEVFS_FL_DEFAULT, ZT_MAJOR, 0, mode, &zt_fops, NULL);
@@ -5718,6 +5720,7 @@ static void __exit zt_cleanup(void) {
if (tone_zones[x])
kfree(tone_zones[x]);
#ifdef CONFIG_DEVFS_FS
+ devfs_unregister(timer);
devfs_unregister(channel);
devfs_unregister(pseudo);
devfs_unregister(ctl);