[zaptel-commits] tzafrir: branch 1.2 r4448 - /branches/1.2/zaptel-base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Sun Aug 3 09:52:49 CDT 2008


Author: tzafrir
Date: Sun Aug  3 09:52:48 2008
New Revision: 4448

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4448
Log:
Use the wrapper CLASS_DEV_DESTROY rather than class_device_destroy
explicitly. Should help with kernels < 2.6.13 and kernels >= 2.6.26 .

Modified:
    branches/1.2/zaptel-base.c

Modified: branches/1.2/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel-base.c?view=diff&rev=4448&r1=4447&r2=4448
==============================================================================
--- branches/1.2/zaptel-base.c (original)
+++ branches/1.2/zaptel-base.c Sun Aug  3 09:52:48 2008
@@ -4616,7 +4616,7 @@
 
 #ifdef CONFIG_ZAP_UDEV
 	for (x = 0; x < span->channels; x++) {
-		class_device_destroy(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo));
+		CLASS_DEV_DESTROY(zap_class, MKDEV(ZT_MAJOR, span->chans[x].channo));
 	}
 #endif /* CONFIG_ZAP_UDEV */
 




More information about the zaptel-commits mailing list