Change a 4 to a COMEDI_NDEVICES. Prolong the static allocation
authorDavid Schleef <ds@schleef.org>
Wed, 25 Sep 2002 01:33:40 +0000 (01:33 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 25 Sep 2002 01:33:40 +0000 (01:33 +0000)
dumbness.

comedi/comedi_fops.c

index 69eface2bcee9d054350fd03564b4538acacd357..ba66ae523bcde894d95d1e96f5c8ca9dc171fa6c 100644 (file)
@@ -1701,7 +1701,7 @@ static int __init comedi_init(void)
        /* XXX requires /proc interface */
        comedi_proc_init();
 
-       for(i=0;i<4;i++){
+       for(i=0;i<COMEDI_NDEVICES;i++){
                char name[20];
                sprintf(name, "comedi%d", i);
                devfs_register(NULL, name, DEVFS_FL_DEFAULT,