diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-01-03 21:17:17 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-01-03 21:17:17 +0000 |
commit | 7c9c1faac5932dd42aa0c270289be0ae36fbdf57 (patch) | |
tree | f11b7e63935b7124c4a0325d1f53731f9972ff72 /drivers/dahdi/dahdi-base.c | |
parent | 5401000ddc848b81bf147600f17991084605cb7b (diff) |
dahdi: Also use constant for DAHDI_TRANSCODE
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9614 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index c778b2a..b86cd97 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -3110,7 +3110,7 @@ static int dahdi_open(struct inode *inode, struct file *file) /* Minor 0: Special "control" descriptor */ if (unit == DAHDI_CTL) return dahdi_ctl_open(file); - if (unit == 250) { + if (unit == DAHDI_TRANSCODE) { if (!dahdi_transcode_fops) { if (request_module("dahdi_transcode")) { return -ENXIO; @@ -3632,7 +3632,7 @@ static int dahdi_release(struct inode *inode, struct file *file) if (unit == DAHDI_TIMER) { return dahdi_timer_release(file); } - if (unit == 250) { + if (unit == DAHDI_TRANSCODE) { /* We should not be here because the dahdi_transcode.ko module * should have updated the file_operations for this file * handle when the file was opened. */ @@ -6389,7 +6389,7 @@ static int dahdi_ioctl(struct inode *inode, struct file *file, goto unlock_exit; } - if (unit == 250) { + if (unit == DAHDI_TRANSCODE) { /* dahdi_transcode should have updated the file_operations on * this file object on open, so we shouldn't be here. */ WARN_ON(1); |