From 20bd65bfadfe981bbbb8f5c93dae64c6728c2436 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 1 Sep 2010 15:46:25 +0000 Subject: dahdi, dahdi_transcode: Remove mmap interface. There are not any existing users of the interface (and it would always return -ENOSYS to the caller anyway). Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9246 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 9 --------- drivers/dahdi/dahdi_transcode.c | 7 ------- 2 files changed, 16 deletions(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 8945841..b286f91 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -8048,14 +8048,6 @@ dahdi_chan_poll(struct file *file, struct poll_table_struct *wait_table, int uni return(ret); /* return what we found */ } -static int dahdi_mmap(struct file *file, struct vm_area_struct *vm) -{ - int unit = UNIT(file); - if (unit == 250) - return dahdi_transcode_fops->mmap(file, vm); - return -ENOSYS; -} - static unsigned int dahdi_poll(struct file *file, struct poll_table_struct *wait_table) { int unit = UNIT(file); @@ -8613,7 +8605,6 @@ static struct file_operations dahdi_fops = { .read = dahdi_read, .write = dahdi_write, .poll = dahdi_poll, - .mmap = dahdi_mmap, }; #ifdef CONFIG_DAHDI_WATCHDOG diff --git a/drivers/dahdi/dahdi_transcode.c b/drivers/dahdi/dahdi_transcode.c index f5e749b..e6f607a 100644 --- a/drivers/dahdi/dahdi_transcode.c +++ b/drivers/dahdi/dahdi_transcode.c @@ -403,12 +403,6 @@ static int dahdi_tc_ioctl(struct inode *inode, struct file *file, unsigned int c } #endif -static int dahdi_tc_mmap(struct file *file, struct vm_area_struct *vma) -{ - printk(KERN_ERR "%s: mmap interface deprecated.\n", THIS_MODULE->name); - return -ENOSYS; -} - static unsigned int dahdi_tc_poll(struct file *file, struct poll_table_struct *wait_table) { int ret; @@ -440,7 +434,6 @@ static struct file_operations __dahdi_transcode_fops = { .read = dahdi_tc_read, .write = dahdi_tc_write, .poll = dahdi_tc_poll, - .mmap = dahdi_tc_mmap, }; static struct dahdi_chardev transcode_chardev = { -- cgit v1.2.3