summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-09-01 15:46:25 +0000
committerShaun Ruffell <sruffell@digium.com>2010-09-01 15:46:25 +0000
commit20bd65bfadfe981bbbb8f5c93dae64c6728c2436 (patch)
tree8637f23633de6bfde0831712f8dfdace8862e449
parent2e426bc5798a371af9dd2b5e14764914edeba60b (diff)
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 <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9246 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/dahdi-base.c9
-rw-r--r--drivers/dahdi/dahdi_transcode.c7
2 files changed, 0 insertions, 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 = {