From: David Schleef Date: Tue, 19 Dec 2000 16:05:55 +0000 (+0000) Subject: fix recognize X-Git-Tag: r0_7_54~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d39e2b50944be3ca48c1837a660fcf36ae8ec69;p=comedi.git fix recognize --- diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index eaef35ab..fd28d523 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -147,11 +147,13 @@ 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) {