From: David Schleef Date: Fri, 7 Dec 2001 02:12:03 +0000 (+0000) Subject: Add module license to INITCLEANUP X-Git-Tag: r0_7_62~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c935828d6c4fd50b78b723f4a13ae37eb66502c1;p=comedi.git Add module license to INITCLEANUP --- diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 8be89458..61819fde 100644 --- a/include/linux/comedidev.h +++ b/include/linux/comedidev.h @@ -47,13 +47,17 @@ #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 "); \ + 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;