From: David Schleef Date: Sun, 10 Feb 2002 04:11:36 +0000 (+0000) Subject: Change buffer allocation to use mite allocator. X-Git-Tag: r0_7_64~132 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb1be3064af6882cd226fc6df9154fa905e9bd4a;p=comedi.git Change buffer allocation to use mite allocator. --- diff --git a/comedi/drivers/ni_pcimio.c b/comedi/drivers/ni_pcimio.c index 1d4b3144..c906eec7 100644 --- a/comedi/drivers/ni_pcimio.c +++ b/comedi/drivers/ni_pcimio.c @@ -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 }