From a246c4d56af7d9ba203dd8e3df580a266f5d0aca Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 21 Dec 2003 23:50:13 +0000 Subject: [PATCH] fixes for COMEDI_NDEVICES > 4 --- Makefile.am | 8 ++++---- comedi/comedi_fops.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index bdddde3c..275304f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,10 +6,10 @@ EXTRA_DIST = Documentation include m4 scripts modtool.in ACLOCAL_AMFLAGS = -I m4 dev: - -mknod -m 666 /dev/comedi0 c 98 0 - -mknod -m 666 /dev/comedi1 c 98 1 - -mknod -m 666 /dev/comedi2 c 98 2 - -mknod -m 666 /dev/comedi3 c 98 3 + -for i in `seq 0 15`; do \ + mknod -m 666 /dev/comedi$$i c 98 $$i \ + ; \ + done; drivers.txt: (for each in comedi/drivers/*.c;do scripts/dump_doc $$each;done >Documentation/comedi/drivers.txt) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 21a8b878..da333e94 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1803,7 +1803,7 @@ static void __exit comedi_cleanup(void) if(MOD_IN_USE) printk("comedi: module in use -- remove delayed\n"); - for(i=0;i<4;i++){ + for(i=0;i