Module: xenomai-abe
Branch: experimental
Commit: 608393ae379b0243ddc85410eccd9d395ef58d5a
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=608393ae379b0243ddc85410eccd9d395ef58d5a

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Wed Jun 16 00:35:03 2010 +0200

analogy: fix test of subdevice status in a4l_write

---

 ksrc/drivers/analogy/buffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/analogy/buffer.c b/ksrc/drivers/analogy/buffer.c
index 04922be..12b8b9b 100644
--- a/ksrc/drivers/analogy/buffer.c
+++ b/ksrc/drivers/analogy/buffer.c
@@ -828,7 +828,7 @@ ssize_t a4l_write_buffer(a4l_cxt_t *cxt, const void 
*bufdata, size_t nbytes)
                return -EINVAL;
        }
 
-       if (!subd || !test_bit(A4L_SUBD_BUSY, &subd->status)) {
+       if (!subd || !a4l_subd_is_busy(subd)) {
                __a4l_err("a4l_write: idle subdevice on this context\n");
                return -ENOENT;
        }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to