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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user