[svn-commits] sruffell: linux/trunk r9572 - in /linux/trunk: drivers/dahdi/ include/dahdi/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 3 18:25:31 UTC 2011


Author: sruffell
Date: Mon Jan  3 12:25:27 2011
New Revision: 9572

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9572
Log:
dahdi_dynamic: "dahdi_dynamic_[un]register()" -> "dahdi_dynamic_[un]register_driver()"

Clarify that we're registering / unregistering the driver.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>

Modified:
    linux/trunk/drivers/dahdi/dahdi_dynamic.c
    linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c
    linux/trunk/drivers/dahdi/dahdi_dynamic_ethmf.c
    linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c
    linux/trunk/include/dahdi/kernel.h

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic.c?view=diff&rev=9572&r1=9571&r2=9572
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic.c Mon Jan  3 12:25:27 2011
@@ -75,10 +75,6 @@
 #define ERR_NCHAN			(1 << 17)
 #define ERR_LEN				(1 << 18)
 
-EXPORT_SYMBOL(dahdi_dynamic_register);
-EXPORT_SYMBOL(dahdi_dynamic_unregister);
-EXPORT_SYMBOL(dahdi_dynamic_receive);
-
 static int dahdi_dynamic_init(void);
 static void dahdi_dynamic_cleanup(void);
 
@@ -395,6 +391,7 @@
 	if (master)
 		dahdi_dynamic_run();
 }
+EXPORT_SYMBOL(dahdi_dynamic_receive);
 
 /**
  * dahdi_dynamic_release() - Free the memory associated with the dahdi_dynamic.
@@ -717,7 +714,7 @@
 	return -ENOTTY;
 }
 
-int dahdi_dynamic_register(struct dahdi_dynamic_driver *dri)
+int dahdi_dynamic_register_driver(struct dahdi_dynamic_driver *dri)
 {
 	unsigned long flags;
 	int res = 0;
@@ -731,8 +728,9 @@
 	}
 	return res;
 }
-
-void dahdi_dynamic_unregister(struct dahdi_dynamic_driver *dri)
+EXPORT_SYMBOL(dahdi_dynamic_register_driver);
+
+void dahdi_dynamic_unregister_driver(struct dahdi_dynamic_driver *dri)
 {
 	struct dahdi_dynamic *d;
 	unsigned long flags;
@@ -752,6 +750,7 @@
 		}
 	}
 }
+EXPORT_SYMBOL(dahdi_dynamic_unregister_driver);
 
 static struct timer_list alarmcheck;
 

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c?view=diff&rev=9572&r1=9571&r2=9572
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c Mon Jan  3 12:25:27 2011
@@ -413,7 +413,7 @@
 {
 	dev_add_pack(&ztdeth_ptype);
 	register_netdevice_notifier(&ztdeth_nblock);
-	dahdi_dynamic_register(&ztd_eth);
+	dahdi_dynamic_register_driver(&ztd_eth);
 
 	skb_queue_head_init(&skbs);
 
@@ -424,7 +424,7 @@
 {
 	dev_remove_pack(&ztdeth_ptype);
 	unregister_netdevice_notifier(&ztdeth_nblock);
-	dahdi_dynamic_unregister(&ztd_eth);
+	dahdi_dynamic_unregister_driver(&ztd_eth);
 }
 
 MODULE_DESCRIPTION("DAHDI Dynamic TDMoE Support");

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic_ethmf.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic_ethmf.c?view=diff&rev=9572&r1=9571&r2=9572
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic_ethmf.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic_ethmf.c Mon Jan  3 12:25:27 2011
@@ -800,7 +800,7 @@
 
 	dev_add_pack(&ztdethmf_ptype);
 	register_netdevice_notifier(&ztdethmf_nblock);
-	dahdi_dynamic_register(&ztd_ethmf);
+	dahdi_dynamic_register_driver(&ztd_ethmf);
 
 	skb_queue_head_init(&skbs);
 
@@ -822,7 +822,7 @@
 
 	dev_remove_pack(&ztdethmf_ptype);
 	unregister_netdevice_notifier(&ztdethmf_nblock);
-	dahdi_dynamic_unregister(&ztd_ethmf);
+	dahdi_dynamic_unregister_driver(&ztd_ethmf);
 
 #ifdef USE_PROC_FS
 	if (proc_entry)

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c?view=diff&rev=9572&r1=9571&r2=9572
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c Mon Jan  3 12:25:27 2011
@@ -250,13 +250,13 @@
 
 static int __init dahdi_dynamic_local_init(void)
 {
-	dahdi_dynamic_register(&dahdi_dynamic_local);
+	dahdi_dynamic_register_driver(&dahdi_dynamic_local);
 	return 0;
 }
 
 static void __exit dahdi_dynamic_local_exit(void)
 {
-	dahdi_dynamic_unregister(&dahdi_dynamic_local);
+	dahdi_dynamic_unregister_driver(&dahdi_dynamic_local);
 }
 
 module_init(dahdi_dynamic_local_init);

Modified: linux/trunk/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/include/dahdi/kernel.h?view=diff&rev=9572&r1=9571&r2=9572
==============================================================================
--- linux/trunk/include/dahdi/kernel.h (original)
+++ linux/trunk/include/dahdi/kernel.h Mon Jan  3 12:25:27 2011
@@ -1012,10 +1012,10 @@
 void dahdi_dynamic_receive(struct dahdi_span *span, unsigned char *msg, int msglen);
 
 /*! \brief Register a dynamic driver */
-int dahdi_dynamic_register(struct dahdi_dynamic_driver *driver);
+int dahdi_dynamic_register_driver(struct dahdi_dynamic_driver *driver);
 
 /*! \brief Unregister a dynamic driver */
-void dahdi_dynamic_unregister(struct dahdi_dynamic_driver *driver);
+void dahdi_dynamic_unregister_driver(struct dahdi_dynamic_driver *driver);
 
 /*! Receive on a span.  The DAHDI interface will handle all the calculations for
    all member channels of the span, pulling the data from the readchunk buffer */




More information about the svn-commits mailing list