[svn-commits] fjoe: freebsd/trunk r8499 - /freebsd/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Apr 11 01:30:48 CDT 2010
Author: fjoe
Date: Sun Apr 11 01:30:44 2010
New Revision: 8499
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8499
Log:
- Return correct error from dahdi_modevent. This fixes
module unloading
- Define dahdi_dummy only when built with CONFIG_DAHDI_CORE_TIMER
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=8499&r1=8498&r2=8499
==============================================================================
--- freebsd/trunk/drivers/dahdi/dahdi-base.c (original)
+++ freebsd/trunk/drivers/dahdi/dahdi-base.c Sun Apr 11 01:30:44 2010
@@ -9247,15 +9247,17 @@
default:
/* we only understand load/unload*/
- return -EINVAL;
+ return EOPNOTSUPP;
}
}
/* Now declare the module to the system */
MODULE_VERSION(dahdi, 1);
DEV_MODULE(dahdi, dahdi_modevent, NULL);
+#ifdef CONFIG_DAHDI_CORE_TIMER
MODULE_VERSION(dahdi_dummy, 1);
DEV_MODULE(dahdi_dummy, NULL, NULL);
+#endif
#else /* !__FreeBSD__ */
module_init(dahdi_init);
module_exit(dahdi_cleanup);
More information about the svn-commits
mailing list