From: David Schleef Date: Wed, 6 Dec 2000 04:06:07 +0000 (+0000) Subject: added recognize to use older name atmio-E X-Git-Tag: r0_7_53~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=211267d7bdcde2224eb1944c0d5a9f03e59f2b34;p=comedi.git added recognize to use older name atmio-E --- diff --git a/comedi/drivers/ni_atmio.c b/comedi/drivers/ni_atmio.c index 23f68b31..85191001 100644 --- a/comedi/drivers/ni_atmio.c +++ b/comedi/drivers/ni_atmio.c @@ -243,16 +243,31 @@ typedef struct{ static int atmio_attach(comedi_device *dev,comedi_devconfig *it); static int atmio_detach(comedi_device *dev); +static int atmio_recognize(const char *name); comedi_driver driver_atmio={ - driver_name: "atmio-E", + driver_name: "ni_atmio", module: THIS_MODULE, attach: atmio_attach, detach: atmio_detach, + recognize: atmio_recognize, }; #include "ni_mio_common.c" +static int atmio_recognize(const char *name) +{ + if(!strcmp(name,"atmio-E")){ + printk("Driver name 'atmio-E' deprecated. Please use 'ni_atmio'.\n"); + return 0; + } + if(!strcmp(name,"ni_atmio")){ + return 0; + } + + return -1; +} + static int init_stage2(comedi_device *dev,comedi_devconfig *it); static int ni_getboardtype(comedi_device *dev);