[Asterisk-cvs] zaptel wcfxs.c,1.46,1.47 wcfxsusb.c,1.6,1.7
citats at lists.digium.com
citats at lists.digium.com
Sat Apr 10 18:09:59 CDT 2004
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/home/citats/cvs/zaptel
Modified Files:
wcfxs.c wcfxsusb.c
Log Message:
#ifdef some MOD_*_USE_COUNT from 2.6 kernels
Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- wcfxs.c 9 Apr 2004 17:08:35 -0000 1.46
+++ wcfxs.c 10 Apr 2004 22:11:33 -0000 1.47
@@ -1406,7 +1406,9 @@
if (wc->dead)
return -ENODEV;
wc->usecount++;
+#ifndef LINUX26
MOD_INC_USE_COUNT;
+#endif
return 0;
}
@@ -1422,7 +1424,9 @@
struct wcfxs *wc = chan->pvt;
int x;
wc->usecount--;
+#ifndef LINUX26
MOD_DEC_USE_COUNT;
+#endif
for (x=0;x<wc->cards;x++)
wc->mod.fxs.idletxhookstate[x] = 1;
/* If we're dead, release us now */
Index: wcfxsusb.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxsusb.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- wcfxsusb.c 30 Jan 2003 19:12:01 -0000 1.6
+++ wcfxsusb.c 10 Apr 2004 22:11:33 -0000 1.7
@@ -1312,7 +1312,9 @@
default:
break;
}
+#ifndef LINUX26
MOD_INC_USE_COUNT;
+#endif
p->usecount++;
return 0;
}
@@ -1330,7 +1332,9 @@
kfree(p->pvt_data);
kfree(p);
}
+#ifndef LINUX26
MOD_DEC_USE_COUNT;
+#endif
return 0;
}
More information about the svn-commits
mailing list