Commit 235bee77 authored by Peter Huewe's avatar Peter Huewe Committed by Greg Kroah-Hartman

staging/comedi/ni_mio_cs: Convert to module_comedi_pcmcia_driver

This patch removes the boring init/exit functions with the new
module_comedi_pcmcia_driver macro.

Also removed the superflous #ifdef MODULE
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb798ccf
...@@ -408,8 +408,6 @@ static int ni_getboardtype(struct comedi_device *dev, ...@@ -408,8 +408,6 @@ static int ni_getboardtype(struct comedi_device *dev,
return 0; return 0;
} }
#ifdef MODULE
static const struct pcmcia_device_id ni_mio_cs_ids[] = { static const struct pcmcia_device_id ni_mio_cs_ids[] = {
PCMCIA_DEVICE_MANF_CARD(0x010b, 0x010d), /* DAQCard-ai-16xe-50 */ PCMCIA_DEVICE_MANF_CARD(0x010b, 0x010d), /* DAQCard-ai-16xe-50 */
PCMCIA_DEVICE_MANF_CARD(0x010b, 0x010c), /* DAQCard-ai-16e-4 */ PCMCIA_DEVICE_MANF_CARD(0x010b, 0x010c), /* DAQCard-ai-16e-4 */
...@@ -434,20 +432,4 @@ static struct pcmcia_driver ni_mio_cs_driver = { ...@@ -434,20 +432,4 @@ static struct pcmcia_driver ni_mio_cs_driver = {
.name = "ni_mio_cs", .name = "ni_mio_cs",
}; };
int init_module(void) module_comedi_pcmcia_driver(driver_ni_mio_cs, ni_mio_cs_driver);
{
pcmcia_register_driver(&ni_mio_cs_driver);
comedi_driver_register(&driver_ni_mio_cs);
return 0;
}
void cleanup_module(void)
{
pcmcia_unregister_driver(&ni_mio_cs_driver);
#if 0
while (cur_dev != NULL)
cs_detach(cur_dev->handle);
#endif
comedi_driver_unregister(&driver_ni_mio_cs);
}
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment