Change buffer allocation to use mite allocator.
authorDavid Schleef <ds@schleef.org>
Sun, 10 Feb 2002 04:11:36 +0000 (04:11 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 10 Feb 2002 04:11:36 +0000 (04:11 +0000)
comedi/drivers/ni_pcimio.c

index 1d4b31441df88bbe3f523a82a0b4ccd883c5f785..c906eec7e7a4789f0219beecbb99052f736a75ae 100644 (file)
@@ -675,6 +675,13 @@ static int pcimio_find_device(comedi_device *dev,int bus,int slot)
 static int pcimio_ai_alloc(comedi_device *dev, comedi_subdevice *s,
        unsigned long new_size)
 {
+       int ret;
+
+       ret = mite_buf_alloc(devpriv->mite, s->async, new_size);
+       if(ret<0)return ret;
+
+       return 0;
+#if 0
        comedi_async *async = s->async;
 
        if(async->prealloc_buf && async->prealloc_bufsz == new_size){
@@ -700,6 +707,7 @@ static int pcimio_ai_alloc(comedi_device *dev, comedi_subdevice *s,
        async->prealloc_bufsz = new_size;
 
        return 0;
+#endif
 }