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

staging/comedi/das08_cs: Convert to module_comedi_pcmcia_driver

This patch removes the boring init/exit functions with the new
module_comedi_pcmcia_driver macro.
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 66bf1ed6
...@@ -181,31 +181,7 @@ static struct pcmcia_driver das08_cs_driver = { ...@@ -181,31 +181,7 @@ static struct pcmcia_driver das08_cs_driver = {
.id_table = das08_cs_id_table, .id_table = das08_cs_id_table,
}; };
static int __init das08_cs_init_module(void) module_comedi_pcmcia_driver(driver_das08_cs, das08_cs_driver);
{
int ret;
ret = comedi_driver_register(&driver_das08_cs);
if (ret < 0)
return ret;
ret = pcmcia_register_driver(&das08_cs_driver);
if (ret < 0) {
comedi_driver_unregister(&driver_das08_cs);
return ret;
}
return 0;
}
module_init(das08_cs_init_module);
static void __exit das08_cs_exit_module(void)
{
pcmcia_unregister_driver(&das08_cs_driver);
comedi_driver_unregister(&driver_das08_cs);
}
module_exit(das08_cs_exit_module);
MODULE_AUTHOR("David A. Schleef <ds@schleef.org>, " MODULE_AUTHOR("David A. Schleef <ds@schleef.org>, "
"Frank Mori Hess <fmhess@users.sourceforge.net>"); "Frank Mori Hess <fmhess@users.sourceforge.net>");
......
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