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

staging/comedi/quatech_daqp_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 235bee77
...@@ -1038,9 +1038,6 @@ static int daqp_cs_resume(struct pcmcia_device *link) ...@@ -1038,9 +1038,6 @@ static int daqp_cs_resume(struct pcmcia_device *link)
} }
/*====================================================================*/ /*====================================================================*/
#ifdef MODULE
static const struct pcmcia_device_id daqp_cs_id_table[] = { static const struct pcmcia_device_id daqp_cs_id_table[] = {
PCMCIA_DEVICE_MANF_CARD(0x0137, 0x0027), PCMCIA_DEVICE_MANF_CARD(0x0137, 0x0027),
PCMCIA_DEVICE_NULL PCMCIA_DEVICE_NULL
...@@ -1061,17 +1058,4 @@ static struct pcmcia_driver daqp_cs_driver = { ...@@ -1061,17 +1058,4 @@ static struct pcmcia_driver daqp_cs_driver = {
.name = "quatech_daqp_cs", .name = "quatech_daqp_cs",
}; };
int __init init_module(void) module_comedi_pcmcia_driver(driver_daqp, daqp_cs_driver);
{
pcmcia_register_driver(&daqp_cs_driver);
comedi_driver_register(&driver_daqp);
return 0;
}
void __exit cleanup_module(void)
{
comedi_driver_unregister(&driver_daqp);
pcmcia_unregister_driver(&daqp_cs_driver);
}
#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