Set SRF_RUNNING in runflags instead of SDF_RUNNING in subdev_flags.
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Aug 2007 13:19:14 +0000 (13:19 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 1 Aug 2007 13:19:14 +0000 (13:19 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 416e42ec6cf58b0bdbb2eafd360f840c8413a9d6..3fe686cafe29dbd96f359bbd8892163dc85e8eb8 100644 (file)
@@ -146,8 +146,7 @@ int comedi_command(comedi_t *d,comedi_cmd *cmd)
 
        s->runflags |= SRF_RT;
        comedi_switch_to_rt(dev);
-
-       s->subdev_flags |= SDF_RUNNING;
+       comedi_set_subdevice_runflags(s, SRF_RUNNING, SRF_RUNNING);
 
        comedi_reset_async_buf( async );