summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwcfxs.c4
-rwxr-xr-xwcfxsusb.c4
-rwxr-xr-xwctdm.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/wcfxs.c b/wcfxs.c
index e7f5c40..f7d512e 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -1406,7 +1406,9 @@ static int wcfxs_open(struct zt_chan *chan)
if (wc->dead)
return -ENODEV;
wc->usecount++;
+#ifndef LINUX26
MOD_INC_USE_COUNT;
+#endif
return 0;
}
@@ -1422,7 +1424,9 @@ static int wcfxs_close(struct zt_chan *chan)
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 */
diff --git a/wcfxsusb.c b/wcfxsusb.c
index 30c004d..0e783ea 100755
--- a/wcfxsusb.c
+++ b/wcfxsusb.c
@@ -1312,7 +1312,9 @@ static int wc_usb_open(struct zt_chan *chan)
default:
break;
}
+#ifndef LINUX26
MOD_INC_USE_COUNT;
+#endif
p->usecount++;
return 0;
}
@@ -1330,7 +1332,9 @@ static int wc_usb_close(struct zt_chan *chan)
kfree(p->pvt_data);
kfree(p);
}
+#ifndef LINUX26
MOD_DEC_USE_COUNT;
+#endif
return 0;
}
diff --git a/wctdm.c b/wctdm.c
index e7f5c40..f7d512e 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -1406,7 +1406,9 @@ static int wcfxs_open(struct zt_chan *chan)
if (wc->dead)
return -ENODEV;
wc->usecount++;
+#ifndef LINUX26
MOD_INC_USE_COUNT;
+#endif
return 0;
}
@@ -1422,7 +1424,9 @@ static int wcfxs_close(struct zt_chan *chan)
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 */