[dahdi-commits] fjoe: freebsd/trunk r9112 - /freebsd/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Sun Aug 8 03:41:03 CDT 2010
Author: fjoe
Date: Sun Aug 8 03:40:59 2010
New Revision: 9112
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9112
Log:
Fix driver unloading.
Modified:
freebsd/trunk/drivers/dahdi/dahdi-base.c
Modified: freebsd/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9112&r1=9111&r2=9112
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi-base.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi-base.c Sun Aug 8 03:40:59 2010
@@ -9310,7 +9310,20 @@
MODULE_VERSION(dahdi, 1);
MODULE_DEPEND(dahdi, firmware, 1, 1, 1);
#ifdef CONFIG_DAHDI_CORE_TIMER
-DEV_MODULE(dahdi_dummy, NULL, NULL);
+static int
+dahdi_dummy_modevent(module_t mod, int cmd, void *arg)
+{
+ switch (cmd) {
+ case MOD_LOAD:
+ case MOD_UNLOAD:
+ return 0;
+ default:
+ /* we only understand load/unload*/
+ return EOPNOTSUPP;
+ }
+}
+
+DEV_MODULE(dahdi_dummy, dahdi_dummy_modevent, NULL);
MODULE_VERSION(dahdi_dummy, 1);
#endif
#else /* !__FreeBSD__ */
More information about the dahdi-commits
mailing list