From d4c047f5d979d0bb3e8d7f0bce4de03dcaf5cd1b Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 3 Jan 2011 21:17:17 +0000 Subject: [PATCH] dahdi: Also use constant for DAHDI_TRANSCODE Signed-off-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9614 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 6 +++--- 1 file 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);