[dahdi-commits] sruffell: linux/trunk r10588 - /linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Mar 22 13:31:16 CDT 2012
Author: sruffell
Date: Thu Mar 22 13:31:13 2012
New Revision: 10588
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10588
Log:
dahdi_dynamic_eth: Fix compilation on kernels < 2.6.22.
Resolves the follwing build error:
drivers/dahdi/dahdi_dynamic_eth.c: In function ‘ztdeth_exit’:
drivers/dahdi/dahdi_dynamic_eth.c:448: error: implicit declaration of function ‘cancel_work_sync’
RHEL kernel versions 2.6.18-238 (5.6) and greater had cancel_work_sync()
backported which is what I did my original smoke test on.
Reported-by: Oron Peled <oron.peled at xorcom.com>
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Modified:
linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c
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=10588&r1=10587&r2=10588
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic_eth.c Thu Mar 22 13:31:13 2012
@@ -445,7 +445,11 @@
static void __exit ztdeth_exit(void)
{
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
+ flush_scheduled_work();
+#else
cancel_work_sync(&dahdi_dynamic_eth_flush_work);
+#endif
dev_remove_pack(&ztdeth_ptype);
unregister_netdevice_notifier(&ztdeth_nblock);
dahdi_dynamic_unregister_driver(&ztd_eth);
More information about the dahdi-commits
mailing list