From c935828d6c4fd50b78b723f4a13ae37eb66502c1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 7 Dec 2001 02:12:03 +0000 Subject: [PATCH] Add module license to INITCLEANUP --- include/linux/comedidev.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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; -- 2.26.2