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

staging/comedi/ni_daq_700: 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 7915ce0e
......@@ -334,30 +334,7 @@ static struct pcmcia_driver daq700_cs_driver = {
.id_table = daq700_cs_ids,
};
static int __init daq700_cs_init(void)
{
int ret;
ret = comedi_driver_register(&daq700_driver);
if (ret < 0)
return ret;
ret = pcmcia_register_driver(&daq700_cs_driver);
if (ret < 0) {
comedi_driver_unregister(&daq700_driver);
return ret;
}
return 0;
}
module_init(daq700_cs_init);
static void __exit daq700_cs_exit(void)
{
pcmcia_unregister_driver(&daq700_cs_driver);
comedi_driver_unregister(&daq700_driver);
}
module_exit(daq700_cs_exit);
module_comedi_pcmcia_driver(daq700_driver, daq700_cs_driver);
MODULE_AUTHOR("Fred Brooks <nsaspook@nsaspook.com>");
MODULE_DESCRIPTION(
......
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