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

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Fri Jun 25 00:14:37 2010 +0200

analogy: remove some tests which become with the buffer overhaul

---

 include/analogy/device.h                           |    3 ---
 .../analogy/national_instruments/mio_common.c      |    3 ---
 ksrc/drivers/analogy/testing/loop.c                |    3 ---
 3 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/include/analogy/device.h b/include/analogy/device.h
index fca40cc..76aca28 100644
--- a/include/analogy/device.h
+++ b/include/analogy/device.h
@@ -80,9 +80,6 @@ typedef struct a4l_dev_info a4l_dvinfo_t;
 
 #ifdef __KERNEL__
 
-/* --- Device related macro --- */
-#define a4l_dev_is_attached(x) test_bit(A4L_DEV_ATTACHED_NR, &(x->flags))
-
 /* --- Devices tab related functions --- */
 void a4l_init_devs(void);
 int a4l_check_cleanup_devs(void);
diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c 
b/ksrc/drivers/analogy/national_instruments/mio_common.c
index 55e0bc2..67c278e 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -1027,9 +1027,6 @@ int ni_E_interrupt(unsigned int irq, void *d)
        unsigned long flags;
        struct mite_struct *mite = devpriv->mite;
 
-       if(!a4l_dev_is_attached(dev))
-               return IRQ_NONE;
-
        /* Make sure dev->attached is checked before handler does
           anything else. */
        smp_mb();
diff --git a/ksrc/drivers/analogy/testing/loop.c 
b/ksrc/drivers/analogy/testing/loop.c
index f9c4bf8..e304ebc 100644
--- a/ksrc/drivers/analogy/testing/loop.c
+++ b/ksrc/drivers/analogy/testing/loop.c
@@ -65,9 +65,6 @@ static void loop_task_proc(void *arg)
        a4l_dev_t *dev = (a4l_dev_t*)arg;
        a4l_subd_t *input_subd, *output_subd;
        lpprv_t *priv = (lpprv_t *)dev->priv;
-    
-       while (!a4l_dev_is_attached(dev))
-               a4l_task_sleep(LOOP_TASK_PERIOD);
 
        input_subd = a4l_get_subd(dev, LOOP_INPUT_SUBD);
        output_subd = a4l_get_subd(dev, LOOP_OUTPUT_SUBD);


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

Reply via email to