summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/rti802.c
diff options
context:
space:
mode:
authorArun Thomas <arun.thomas@gmail.com>2010-06-06 22:23:30 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-17 13:47:00 -0700
commit7114a28011f9d5f3d981731ad341177c21f9d948 (patch)
tree04b7e939249b99d2e814c53564115b39d4c5fb79 /drivers/staging/comedi/drivers/rti802.c
parent90f703d30dd3e0c16ff80f35e34e511385a05ad5 (diff)
Staging: comedi: Remove COMEDI_INITCLEANUP macro
Move the init/exit routines to the respective C source files instead of calling COMEDI_INITCLEANUP Signed-off-by: Arun Thomas <arun.thomas@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi/drivers/rti802.c')
-rw-r--r--drivers/staging/comedi/drivers/rti802.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/rti802.c b/drivers/staging/comedi/drivers/rti802.c
index 132415b2d005..f59cb11590f6 100644
--- a/drivers/staging/comedi/drivers/rti802.c
+++ b/drivers/staging/comedi/drivers/rti802.c
@@ -57,7 +57,18 @@ static struct comedi_driver driver_rti802 = {
.detach = rti802_detach,
};
-COMEDI_INITCLEANUP(driver_rti802);
+static int __init driver_rti802_init_module(void)
+{
+ return comedi_driver_register(&driver_rti802);
+}
+
+static void __exit driver_rti802_cleanup_module(void)
+{
+ comedi_driver_unregister(&driver_rti802);
+}
+
+module_init(driver_rti802_init_module);
+module_exit(driver_rti802_cleanup_module);
struct rti802_private {
enum {