[dahdi-commits] sruffell: linux/trunk r9318 - /linux/trunk/drivers/dahdi/wcte12xp/base.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Sat Sep 11 14:25:53 CDT 2010


Author: sruffell
Date: Sat Sep 11 14:25:47 2010
New Revision: 9318

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9318
Log:
wcte12xp: Remove unused functions from t1_span_ops.

'open' and 'close' were already empty.  't1xxp_shutdown' only cleared
DAHDI_FLAGBIT_RUNNING which is already done in dahdi-base.c after calling
shutdown.

Modified:
    linux/trunk/drivers/dahdi/wcte12xp/base.c

Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=9318&r1=9317&r2=9318
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Sat Sep 11 14:25:47 2010
@@ -978,13 +978,6 @@
 	t1xxp_framer_start(wc, span);
 	debug_printk(wc, 1, "Calling startup (flags is %lu)\n", span->flags);
 
-	return 0;
-}
-
-static int t1xxp_shutdown(struct dahdi_span *span)
-{
-	struct t1 *wc = container_of(span, struct t1, span);
-	clear_bit(DAHDI_FLAGBIT_RUNNING, &span->flags);
 	return 0;
 }
 
@@ -1303,16 +1296,6 @@
 }
 
 
-static int t1xxp_open(struct dahdi_chan *chan)
-{
-	return 0;
-}
-
-static int t1xxp_close(struct dahdi_chan *chan)
-{
-	return 0;
-}
-
 static int t1xxp_ioctl(struct dahdi_chan *chan, unsigned int cmd, unsigned long data)
 {
 	struct t4_regs regs;
@@ -1557,11 +1540,8 @@
 	.spanconfig = t1xxp_spanconfig,
 	.chanconfig = t1xxp_chanconfig,
 	.startup = t1xxp_startup,
-	.shutdown = t1xxp_shutdown,
 	.rbsbits = t1xxp_rbsbits,
 	.maint = t1xxp_maint,
-	.open = t1xxp_open,
-	.close = t1xxp_close,
 	.ioctl = t1xxp_ioctl,
 #ifdef VPM_SUPPORT
 	.echocan_create = t1xxp_echocan_create,




More information about the dahdi-commits mailing list