From: Frank Mori Hess Date: Tue, 9 Dec 2008 14:47:22 +0000 (+0000) Subject: Fixed minor numbers for subdevice files. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a769f78371512cf849fff9f8a1102ef399fc9cdc;p=comedi.git Fixed minor numbers for subdevice files. --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 9d27a615..c284d9d3 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -2190,7 +2190,7 @@ int comedi_alloc_subdevice_minor(comedi_device *dev, comedi_subdevice *s) info->read_subdevice = s; info->write_subdevice = s; comedi_spin_lock_irqsave(&comedi_file_info_table_lock, flags); - for(i = COMEDI_FIRST_SUBDEVICE_MINOR; i < COMEDI_NUM_BOARD_MINORS; ++i) + for(i = COMEDI_FIRST_SUBDEVICE_MINOR; i < COMEDI_NUM_MINORS; ++i) { if(comedi_file_info_table[i] == NULL) {