Add module license to INITCLEANUP
authorDavid Schleef <ds@schleef.org>
Fri, 7 Dec 2001 02:12:03 +0000 (02:12 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 7 Dec 2001 02:12:03 +0000 (02:12 +0000)
include/linux/comedidev.h

index 8be8945843f97e84d25a4eaf3d7416b0e777da00..61819fded1a884fb3f74461473239474ee0d52aa 100644 (file)
 #define COMEDI_RELEASE "1.0.0"
 #endif
 
-#ifdef MODULE
 #define COMEDI_INITCLEANUP(x)                                          \
-       int init_module(void){return comedi_driver_register(&(x));}     \
-       void cleanup_module(void){comedi_driver_unregister(&(x));}
-#else
-#define COMEDI_INITCLEANUP(x)
-#endif
+       MODULE_AUTHOR("David A. Schleef <ds@schleef.org>");             \
+       MODULE_DESCRIPTION("Comedi low-level driver");                  \
+       MODULE_LICENSE("GPL");                                          \
+       static int __init x ## _init_module(void)                       \
+               {return comedi_driver_register(&(x));}                  \
+       static void __exit x ## _cleanup_module(void)                   \
+               {comedi_driver_unregister(&(x));}                       \
+       module_init(x ## _init_module);                                 \
+       module_exit(x ## _cleanup_module);                                      \
+
 typedef struct comedi_device_struct comedi_device;
 typedef struct comedi_subdevice_struct comedi_subdevice;
 typedef struct comedi_async_struct comedi_async;