[svn-commits] sruffell: linux/trunk r9246 - /linux/trunk/drivers/dahdi/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Sep 1 10:46:37 CDT 2010


Author: sruffell
Date: Wed Sep  1 10:46:25 2010
New Revision: 9246

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9246
Log:
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 at digium.com>

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c
    linux/trunk/drivers/dahdi/dahdi_transcode.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9246&r1=9245&r2=9246
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Wed Sep  1 10:46:25 2010
@@ -8048,14 +8048,6 @@
 	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 @@
 	.read    = dahdi_read,
 	.write   = dahdi_write,
 	.poll    = dahdi_poll,
-	.mmap    = dahdi_mmap,
 };
 
 #ifdef CONFIG_DAHDI_WATCHDOG

Modified: linux/trunk/drivers/dahdi/dahdi_transcode.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_transcode.c?view=diff&rev=9246&r1=9245&r2=9246
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_transcode.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_transcode.c Wed Sep  1 10:46:25 2010
@@ -403,12 +403,6 @@
 }
 #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 @@
 	.read =    dahdi_tc_read,
 	.write =   dahdi_tc_write,
 	.poll =    dahdi_tc_poll,
-	.mmap =    dahdi_tc_mmap,
 };
 
 static struct dahdi_chardev transcode_chardev = {




More information about the svn-commits mailing list