From cd9b3a9802abdfb784c5e6c998fefbb815e11cd7 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 22 Mar 2000 19:35:34 +0000 Subject: [PATCH] allocates correct number of subdevs --- comedi/drivers/ni_pcidio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index c1754214..a97e330b 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -345,7 +345,7 @@ static int nidio_attach(comedi_device *dev,comedi_devconfig *it) printk(" %s",dev->board_name); if(!nidio_boards[dev->board].is_diodaq){ - dev->n_subdevices=4; + dev->n_subdevices=nidio_boards[dev->board].n_8255; }else{ dev->n_subdevices=1; } -- 2.26.2