From 6d39e2b50944be3ca48c1837a660fcf36ae8ec69 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 19 Dec 2000 16:05:55 +0000 Subject: [PATCH] fix recognize --- comedi/drivers/ni_pcidio.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) { -- 2.26.2