fix recognize
authorDavid Schleef <ds@schleef.org>
Tue, 19 Dec 2000 16:05:55 +0000 (16:05 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 19 Dec 2000 16:05:55 +0000 (16:05 +0000)
comedi/drivers/ni_pcidio.c

index eaef35ab733d4467453f6e3e71d6b820cd90760a..fd28d523d59811733eb0c87081da0221d2bf85ea 100644 (file)
 
 static int nidio_attach(comedi_device *dev,comedi_devconfig *it);
 static int nidio_detach(comedi_device *dev);
+static int nidio_recognize(comedi_device *dev,char *name);
 comedi_driver driver_pcidio={
-       driver_name:    "nidio",
+       driver_name:    "ni_pcidio",
        module:         THIS_MODULE,
        attach:         nidio_attach,
        detach:         nidio_detach,
+       recognize:      nidio_recognize,
 };
 
 typedef struct{
@@ -224,6 +226,16 @@ static int nidio_find_device(comedi_device *dev,comedi_devconfig *it);
 static int setup_mite(comedi_device *dev);
 #endif
 
+static int nidio_recognize(char *name)
+{
+       if(!strcmp(name,"nidio")){
+               printk("name \"nidio\" deprecated.  Use \"ni_pcidio\"\n");
+               return 0;
+       }
+       if(!strcmp(name,"ni_pcimio"))
+               return 0;
+       return -1;
+}
 
 static int nidio96_8255_cb(int dir,int port,int data,void *arg)
 {