Remove s->do_lock, s->do_unlock
authorDavid Schleef <ds@schleef.org>
Tue, 24 Jul 2001 10:35:58 +0000 (10:35 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 24 Jul 2001 10:35:58 +0000 (10:35 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 688c830a51ef322e6fedf37558d670de29cf46a2..f22e719051b11d18cc01a1b59016db249b393a2f 100644 (file)
@@ -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;