summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-07-01 23:07:07 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-07-01 23:07:07 +0000
commit084c0bbe666e6bcc9079b729f086a2b07226de33 (patch)
treefbd65c1936bf392c1cb61e1a1323b9a04fdf5ff1 /zaptel.c
parent5c1bfc1e84dec36cd8baaae795a6baf10505f06d (diff)
devfs register timer
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@207 5390a7c7-147a-4af0-8ec9-7488f05a26cb
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);