From: David Schleef Date: Tue, 24 Jul 2001 10:35:58 +0000 (+0000) Subject: Remove s->do_lock, s->do_unlock X-Git-Tag: r0_7_60~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5b920670fc7fc796d2e45903ba4957563236670;p=comedi.git Remove s->do_lock, s->do_unlock --- diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index 688c830a..f22e7190 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -761,9 +761,6 @@ int comedi_lock(unsigned int minor,unsigned int subdev) }else{ __MOD_INC_USE_COUNT(dev->driver->module); s->lock=(void *)&rtcomedi_lock_semaphore; - - if(s->do_lock) - s->do_lock(dev,s); } return ret; @@ -808,9 +805,6 @@ int comedi_unlock(unsigned int minor,unsigned int subdev) if(s->lock && s->lock!=&rtcomedi_lock_semaphore) return -EACCES; - if(s->do_unlock) - s->do_unlock(dev,s); - if(s->lock==&rtcomedi_lock_semaphore){ s->lock=NULL;