From 25204bb657e4720f286a2dab75c041239e42465a Mon Sep 17 00:00:00 2001 From: citats Date: Sat, 10 Apr 2004 22:11:33 +0000 Subject: #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 --- wcfxsusb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wcfxsusb.c') 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; } -- cgit v1.2.3