diff options
author | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-10 22:11:33 +0000 |
---|---|---|
committer | citats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-04-10 22:11:33 +0000 |
commit | 25204bb657e4720f286a2dab75c041239e42465a (patch) | |
tree | dfd1d84eb51b8ddd3d1e27d1fa20726a68bab0da | |
parent | 499393d0cda7781d3be42a859ead02277284bc61 (diff) |
#ifdef some MOD_*_USE_COUNT from 2.6 kernels
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@362 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wcfxs.c | 4 | ||||
-rwxr-xr-x | wcfxsusb.c | 4 | ||||
-rwxr-xr-x | wctdm.c | 4 |
3 files changed, 12 insertions, 0 deletions
@@ -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 */ @@ -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; } @@ -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 */ |