diff options
author | hartleys <hartleys@visionengravers.com> | 2012-04-24 08:56:03 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-27 00:03:34 -0400 |
commit | d73988923f73b5a3364b06ae1368542785f0af84 (patch) | |
tree | c967b70def1b39242c19fdcc12924f718f994354 | |
parent | 67469601406c12ced3db9956aeb0ef0854e2952f (diff) |
isdn/eicon: use standard __init,__exit function markup
Remove the custom DIVA_{INIT,EXIT}_FUNCTION defines and use
the standard __init,__exit markup.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Armin Schindler <mac@melware.de>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/isdn/hardware/eicon/capifunc.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/capimain.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/diddfunc.c | 8 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/diva_didd.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/divamnt.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/divasfunc.c | 4 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/divasi.c | 8 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/divasmain.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/idifunc.c | 10 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/mntfunc.c | 8 | ||||
-rw-r--r-- | drivers/isdn/hardware/eicon/platform.h | 3 |
11 files changed, 33 insertions, 36 deletions
diff --git a/drivers/isdn/hardware/eicon/capifunc.c b/drivers/isdn/hardware/eicon/capifunc.c index a576f32e6635..7a0bdbdd87ea 100644 --- a/drivers/isdn/hardware/eicon/capifunc.c +++ b/drivers/isdn/hardware/eicon/capifunc.c | |||
@@ -1120,7 +1120,7 @@ int fax_head_line_time(char *buffer) | |||
1120 | /* | 1120 | /* |
1121 | * init (alloc) main structures | 1121 | * init (alloc) main structures |
1122 | */ | 1122 | */ |
1123 | static int DIVA_INIT_FUNCTION init_main_structs(void) | 1123 | static int __init init_main_structs(void) |
1124 | { | 1124 | { |
1125 | if (!(mapped_msg = (CAPI_MSG *) diva_os_malloc(0, MAX_MSG_SIZE))) { | 1125 | if (!(mapped_msg = (CAPI_MSG *) diva_os_malloc(0, MAX_MSG_SIZE))) { |
1126 | DBG_ERR(("init: failed alloc mapped_msg.")) | 1126 | DBG_ERR(("init: failed alloc mapped_msg.")) |
@@ -1181,7 +1181,7 @@ static void do_api_remove_start(void) | |||
1181 | /* | 1181 | /* |
1182 | * init | 1182 | * init |
1183 | */ | 1183 | */ |
1184 | int DIVA_INIT_FUNCTION init_capifunc(void) | 1184 | int __init init_capifunc(void) |
1185 | { | 1185 | { |
1186 | diva_os_initialize_spin_lock(&api_lock, "capifunc"); | 1186 | diva_os_initialize_spin_lock(&api_lock, "capifunc"); |
1187 | memset(ControllerMap, 0, MAX_DESCRIPTORS + 1); | 1187 | memset(ControllerMap, 0, MAX_DESCRIPTORS + 1); |
@@ -1209,7 +1209,7 @@ int DIVA_INIT_FUNCTION init_capifunc(void) | |||
1209 | /* | 1209 | /* |
1210 | * finit | 1210 | * finit |
1211 | */ | 1211 | */ |
1212 | void DIVA_EXIT_FUNCTION finit_capifunc(void) | 1212 | void __exit finit_capifunc(void) |
1213 | { | 1213 | { |
1214 | do_api_remove_start(); | 1214 | do_api_remove_start(); |
1215 | divacapi_disconnect_didd(); | 1215 | divacapi_disconnect_didd(); |
diff --git a/drivers/isdn/hardware/eicon/capimain.c b/drivers/isdn/hardware/eicon/capimain.c index eabe0fa1b627..997d46abf5b2 100644 --- a/drivers/isdn/hardware/eicon/capimain.c +++ b/drivers/isdn/hardware/eicon/capimain.c | |||
@@ -118,7 +118,7 @@ void diva_os_set_controller_struct(struct capi_ctr *ctrl) | |||
118 | /* | 118 | /* |
119 | * module init | 119 | * module init |
120 | */ | 120 | */ |
121 | static int DIVA_INIT_FUNCTION divacapi_init(void) | 121 | static int __init divacapi_init(void) |
122 | { | 122 | { |
123 | char tmprev[32]; | 123 | char tmprev[32]; |
124 | int ret = 0; | 124 | int ret = 0; |
@@ -144,7 +144,7 @@ static int DIVA_INIT_FUNCTION divacapi_init(void) | |||
144 | /* | 144 | /* |
145 | * module exit | 145 | * module exit |
146 | */ | 146 | */ |
147 | static void DIVA_EXIT_FUNCTION divacapi_exit(void) | 147 | static void __exit divacapi_exit(void) |
148 | { | 148 | { |
149 | finit_capifunc(); | 149 | finit_capifunc(); |
150 | printk(KERN_INFO "%s: module unloaded.\n", DRIVERLNAME); | 150 | printk(KERN_INFO "%s: module unloaded.\n", DRIVERLNAME); |
diff --git a/drivers/isdn/hardware/eicon/diddfunc.c b/drivers/isdn/hardware/eicon/diddfunc.c index c4c8220c9d72..b0b23ed8b374 100644 --- a/drivers/isdn/hardware/eicon/diddfunc.c +++ b/drivers/isdn/hardware/eicon/diddfunc.c | |||
@@ -47,7 +47,7 @@ static void *didd_callback(void *context, DESCRIPTOR *adapter, | |||
47 | /* | 47 | /* |
48 | * connect to didd | 48 | * connect to didd |
49 | */ | 49 | */ |
50 | static int DIVA_INIT_FUNCTION connect_didd(void) | 50 | static int __init connect_didd(void) |
51 | { | 51 | { |
52 | int x = 0; | 52 | int x = 0; |
53 | int dadapter = 0; | 53 | int dadapter = 0; |
@@ -79,7 +79,7 @@ static int DIVA_INIT_FUNCTION connect_didd(void) | |||
79 | /* | 79 | /* |
80 | * disconnect from didd | 80 | * disconnect from didd |
81 | */ | 81 | */ |
82 | static void DIVA_EXIT_FUNCTION disconnect_didd(void) | 82 | static void __exit disconnect_didd(void) |
83 | { | 83 | { |
84 | IDI_SYNC_REQ req; | 84 | IDI_SYNC_REQ req; |
85 | 85 | ||
@@ -92,7 +92,7 @@ static void DIVA_EXIT_FUNCTION disconnect_didd(void) | |||
92 | /* | 92 | /* |
93 | * init | 93 | * init |
94 | */ | 94 | */ |
95 | int DIVA_INIT_FUNCTION diddfunc_init(void) | 95 | int __init diddfunc_init(void) |
96 | { | 96 | { |
97 | diva_didd_load_time_init(); | 97 | diva_didd_load_time_init(); |
98 | 98 | ||
@@ -107,7 +107,7 @@ int DIVA_INIT_FUNCTION diddfunc_init(void) | |||
107 | /* | 107 | /* |
108 | * finit | 108 | * finit |
109 | */ | 109 | */ |
110 | void DIVA_EXIT_FUNCTION diddfunc_finit(void) | 110 | void __exit diddfunc_finit(void) |
111 | { | 111 | { |
112 | DbgDeregister(); | 112 | DbgDeregister(); |
113 | disconnect_didd(); | 113 | disconnect_didd(); |
diff --git a/drivers/isdn/hardware/eicon/diva_didd.c b/drivers/isdn/hardware/eicon/diva_didd.c index d1d3de03cced..fab6ccfb00d5 100644 --- a/drivers/isdn/hardware/eicon/diva_didd.c +++ b/drivers/isdn/hardware/eicon/diva_didd.c | |||
@@ -91,7 +91,7 @@ static const struct file_operations divadidd_proc_fops = { | |||
91 | .release = single_release, | 91 | .release = single_release, |
92 | }; | 92 | }; |
93 | 93 | ||
94 | static int DIVA_INIT_FUNCTION create_proc(void) | 94 | static int __init create_proc(void) |
95 | { | 95 | { |
96 | proc_net_eicon = proc_mkdir("eicon", init_net.proc_net); | 96 | proc_net_eicon = proc_mkdir("eicon", init_net.proc_net); |
97 | 97 | ||
@@ -109,7 +109,7 @@ static void remove_proc(void) | |||
109 | remove_proc_entry("eicon", init_net.proc_net); | 109 | remove_proc_entry("eicon", init_net.proc_net); |
110 | } | 110 | } |
111 | 111 | ||
112 | static int DIVA_INIT_FUNCTION divadidd_init(void) | 112 | static int __init divadidd_init(void) |
113 | { | 113 | { |
114 | char tmprev[32]; | 114 | char tmprev[32]; |
115 | int ret = 0; | 115 | int ret = 0; |
@@ -141,7 +141,7 @@ out: | |||
141 | return (ret); | 141 | return (ret); |
142 | } | 142 | } |
143 | 143 | ||
144 | static void DIVA_EXIT_FUNCTION divadidd_exit(void) | 144 | static void __exit divadidd_exit(void) |
145 | { | 145 | { |
146 | diddfunc_finit(); | 146 | diddfunc_finit(); |
147 | remove_proc(); | 147 | remove_proc(); |
diff --git a/drivers/isdn/hardware/eicon/divamnt.c b/drivers/isdn/hardware/eicon/divamnt.c index ffa0c31be745..48db08d0bb3d 100644 --- a/drivers/isdn/hardware/eicon/divamnt.c +++ b/drivers/isdn/hardware/eicon/divamnt.c | |||
@@ -184,7 +184,7 @@ static void divas_maint_unregister_chrdev(void) | |||
184 | unregister_chrdev(major, DEVNAME); | 184 | unregister_chrdev(major, DEVNAME); |
185 | } | 185 | } |
186 | 186 | ||
187 | static int DIVA_INIT_FUNCTION divas_maint_register_chrdev(void) | 187 | static int __init divas_maint_register_chrdev(void) |
188 | { | 188 | { |
189 | if ((major = register_chrdev(0, DEVNAME, &divas_maint_fops)) < 0) | 189 | if ((major = register_chrdev(0, DEVNAME, &divas_maint_fops)) < 0) |
190 | { | 190 | { |
@@ -207,7 +207,7 @@ void diva_maint_wakeup_read(void) | |||
207 | /* | 207 | /* |
208 | * Driver Load | 208 | * Driver Load |
209 | */ | 209 | */ |
210 | static int DIVA_INIT_FUNCTION maint_init(void) | 210 | static int __init maint_init(void) |
211 | { | 211 | { |
212 | char tmprev[50]; | 212 | char tmprev[50]; |
213 | int ret = 0; | 213 | int ret = 0; |
@@ -245,7 +245,7 @@ out: | |||
245 | /* | 245 | /* |
246 | ** Driver Unload | 246 | ** Driver Unload |
247 | */ | 247 | */ |
248 | static void DIVA_EXIT_FUNCTION maint_exit(void) | 248 | static void __exit maint_exit(void) |
249 | { | 249 | { |
250 | divas_maint_unregister_chrdev(); | 250 | divas_maint_unregister_chrdev(); |
251 | mntfunc_finit(); | 251 | mntfunc_finit(); |
diff --git a/drivers/isdn/hardware/eicon/divasfunc.c b/drivers/isdn/hardware/eicon/divasfunc.c index 60aaf9580956..4be5f8814777 100644 --- a/drivers/isdn/hardware/eicon/divasfunc.c +++ b/drivers/isdn/hardware/eicon/divasfunc.c | |||
@@ -153,7 +153,7 @@ static void *didd_callback(void *context, DESCRIPTOR *adapter, | |||
153 | /* | 153 | /* |
154 | * connect to didd | 154 | * connect to didd |
155 | */ | 155 | */ |
156 | static int DIVA_INIT_FUNCTION connect_didd(void) | 156 | static int __init connect_didd(void) |
157 | { | 157 | { |
158 | int x = 0; | 158 | int x = 0; |
159 | int dadapter = 0; | 159 | int dadapter = 0; |
@@ -209,7 +209,7 @@ static void disconnect_didd(void) | |||
209 | /* | 209 | /* |
210 | * init | 210 | * init |
211 | */ | 211 | */ |
212 | int DIVA_INIT_FUNCTION divasfunc_init(int dbgmask) | 212 | int __init divasfunc_init(int dbgmask) |
213 | { | 213 | { |
214 | char *version; | 214 | char *version; |
215 | 215 | ||
diff --git a/drivers/isdn/hardware/eicon/divasi.c b/drivers/isdn/hardware/eicon/divasi.c index a5c8f90b3b37..4103a8c178d7 100644 --- a/drivers/isdn/hardware/eicon/divasi.c +++ b/drivers/isdn/hardware/eicon/divasi.c | |||
@@ -114,7 +114,7 @@ static const struct file_operations um_idi_proc_fops = { | |||
114 | .release = single_release, | 114 | .release = single_release, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static int DIVA_INIT_FUNCTION create_um_idi_proc(void) | 117 | static int __init create_um_idi_proc(void) |
118 | { | 118 | { |
119 | um_idi_proc_entry = proc_create(DRIVERLNAME, S_IRUGO, proc_net_eicon, | 119 | um_idi_proc_entry = proc_create(DRIVERLNAME, S_IRUGO, proc_net_eicon, |
120 | &um_idi_proc_fops); | 120 | &um_idi_proc_fops); |
@@ -146,7 +146,7 @@ static void divas_idi_unregister_chrdev(void) | |||
146 | unregister_chrdev(major, DEVNAME); | 146 | unregister_chrdev(major, DEVNAME); |
147 | } | 147 | } |
148 | 148 | ||
149 | static int DIVA_INIT_FUNCTION divas_idi_register_chrdev(void) | 149 | static int __init divas_idi_register_chrdev(void) |
150 | { | 150 | { |
151 | if ((major = register_chrdev(0, DEVNAME, &divas_idi_fops)) < 0) | 151 | if ((major = register_chrdev(0, DEVNAME, &divas_idi_fops)) < 0) |
152 | { | 152 | { |
@@ -161,7 +161,7 @@ static int DIVA_INIT_FUNCTION divas_idi_register_chrdev(void) | |||
161 | /* | 161 | /* |
162 | ** Driver Load | 162 | ** Driver Load |
163 | */ | 163 | */ |
164 | static int DIVA_INIT_FUNCTION divasi_init(void) | 164 | static int __init divasi_init(void) |
165 | { | 165 | { |
166 | char tmprev[50]; | 166 | char tmprev[50]; |
167 | int ret = 0; | 167 | int ret = 0; |
@@ -202,7 +202,7 @@ out: | |||
202 | /* | 202 | /* |
203 | ** Driver Unload | 203 | ** Driver Unload |
204 | */ | 204 | */ |
205 | static void DIVA_EXIT_FUNCTION divasi_exit(void) | 205 | static void __exit divasi_exit(void) |
206 | { | 206 | { |
207 | idifunc_finit(); | 207 | idifunc_finit(); |
208 | remove_um_idi_proc(); | 208 | remove_um_idi_proc(); |
diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c index 7eaab06276f9..ca6d276bb256 100644 --- a/drivers/isdn/hardware/eicon/divasmain.c +++ b/drivers/isdn/hardware/eicon/divasmain.c | |||
@@ -673,7 +673,7 @@ static void divas_unregister_chrdev(void) | |||
673 | unregister_chrdev(major, DEVNAME); | 673 | unregister_chrdev(major, DEVNAME); |
674 | } | 674 | } |
675 | 675 | ||
676 | static int DIVA_INIT_FUNCTION divas_register_chrdev(void) | 676 | static int __init divas_register_chrdev(void) |
677 | { | 677 | { |
678 | if ((major = register_chrdev(0, DEVNAME, &divas_fops)) < 0) | 678 | if ((major = register_chrdev(0, DEVNAME, &divas_fops)) < 0) |
679 | { | 679 | { |
@@ -767,7 +767,7 @@ static void __devexit divas_remove_one(struct pci_dev *pdev) | |||
767 | /* -------------------------------------------------------------------------- | 767 | /* -------------------------------------------------------------------------- |
768 | Driver Load / Startup | 768 | Driver Load / Startup |
769 | -------------------------------------------------------------------------- */ | 769 | -------------------------------------------------------------------------- */ |
770 | static int DIVA_INIT_FUNCTION divas_init(void) | 770 | static int __init divas_init(void) |
771 | { | 771 | { |
772 | char tmprev[50]; | 772 | char tmprev[50]; |
773 | int ret = 0; | 773 | int ret = 0; |
@@ -831,7 +831,7 @@ out: | |||
831 | /* -------------------------------------------------------------------------- | 831 | /* -------------------------------------------------------------------------- |
832 | Driver Unload | 832 | Driver Unload |
833 | -------------------------------------------------------------------------- */ | 833 | -------------------------------------------------------------------------- */ |
834 | static void DIVA_EXIT_FUNCTION divas_exit(void) | 834 | static void __exit divas_exit(void) |
835 | { | 835 | { |
836 | pci_unregister_driver(&diva_pci_driver); | 836 | pci_unregister_driver(&diva_pci_driver); |
837 | remove_divas_proc(); | 837 | remove_divas_proc(); |
diff --git a/drivers/isdn/hardware/eicon/idifunc.c b/drivers/isdn/hardware/eicon/idifunc.c index d153e3cdecf7..fef6586fe5ac 100644 --- a/drivers/isdn/hardware/eicon/idifunc.c +++ b/drivers/isdn/hardware/eicon/idifunc.c | |||
@@ -133,7 +133,7 @@ static void um_remove_card(DESCRIPTOR *d) | |||
133 | /* | 133 | /* |
134 | * remove all adapter | 134 | * remove all adapter |
135 | */ | 135 | */ |
136 | static void DIVA_EXIT_FUNCTION remove_all_idi_proc(void) | 136 | static void __exit remove_all_idi_proc(void) |
137 | { | 137 | { |
138 | udiva_card *card; | 138 | udiva_card *card; |
139 | diva_os_spin_lock_magic_t old_irql; | 139 | diva_os_spin_lock_magic_t old_irql; |
@@ -181,7 +181,7 @@ static void *didd_callback(void *context, DESCRIPTOR *adapter, | |||
181 | /* | 181 | /* |
182 | * connect DIDD | 182 | * connect DIDD |
183 | */ | 183 | */ |
184 | static int DIVA_INIT_FUNCTION connect_didd(void) | 184 | static int __init connect_didd(void) |
185 | { | 185 | { |
186 | int x = 0; | 186 | int x = 0; |
187 | int dadapter = 0; | 187 | int dadapter = 0; |
@@ -225,7 +225,7 @@ static int DIVA_INIT_FUNCTION connect_didd(void) | |||
225 | /* | 225 | /* |
226 | * Disconnect from DIDD | 226 | * Disconnect from DIDD |
227 | */ | 227 | */ |
228 | static void DIVA_EXIT_FUNCTION disconnect_didd(void) | 228 | static void __exit disconnect_didd(void) |
229 | { | 229 | { |
230 | IDI_SYNC_REQ req; | 230 | IDI_SYNC_REQ req; |
231 | 231 | ||
@@ -240,7 +240,7 @@ static void DIVA_EXIT_FUNCTION disconnect_didd(void) | |||
240 | /* | 240 | /* |
241 | * init | 241 | * init |
242 | */ | 242 | */ |
243 | int DIVA_INIT_FUNCTION idifunc_init(void) | 243 | int __init idifunc_init(void) |
244 | { | 244 | { |
245 | diva_os_initialize_spin_lock(&ll_lock, "idifunc"); | 245 | diva_os_initialize_spin_lock(&ll_lock, "idifunc"); |
246 | 246 | ||
@@ -260,7 +260,7 @@ int DIVA_INIT_FUNCTION idifunc_init(void) | |||
260 | /* | 260 | /* |
261 | * finit | 261 | * finit |
262 | */ | 262 | */ |
263 | void DIVA_EXIT_FUNCTION idifunc_finit(void) | 263 | void __exit idifunc_finit(void) |
264 | { | 264 | { |
265 | diva_user_mode_idi_finit(); | 265 | diva_user_mode_idi_finit(); |
266 | disconnect_didd(); | 266 | disconnect_didd(); |
diff --git a/drivers/isdn/hardware/eicon/mntfunc.c b/drivers/isdn/hardware/eicon/mntfunc.c index d6072607305c..1cd9affb6058 100644 --- a/drivers/isdn/hardware/eicon/mntfunc.c +++ b/drivers/isdn/hardware/eicon/mntfunc.c | |||
@@ -72,7 +72,7 @@ static void *didd_callback(void *context, DESCRIPTOR *adapter, | |||
72 | /* | 72 | /* |
73 | * connect to didd | 73 | * connect to didd |
74 | */ | 74 | */ |
75 | static int DIVA_INIT_FUNCTION connect_didd(void) | 75 | static int __init connect_didd(void) |
76 | { | 76 | { |
77 | int x = 0; | 77 | int x = 0; |
78 | int dadapter = 0; | 78 | int dadapter = 0; |
@@ -114,7 +114,7 @@ static int DIVA_INIT_FUNCTION connect_didd(void) | |||
114 | /* | 114 | /* |
115 | * disconnect from didd | 115 | * disconnect from didd |
116 | */ | 116 | */ |
117 | static void DIVA_EXIT_FUNCTION disconnect_didd(void) | 117 | static void __exit disconnect_didd(void) |
118 | { | 118 | { |
119 | IDI_SYNC_REQ req; | 119 | IDI_SYNC_REQ req; |
120 | 120 | ||
@@ -300,7 +300,7 @@ int maint_read_write(void __user *buf, int count) | |||
300 | /* | 300 | /* |
301 | * init | 301 | * init |
302 | */ | 302 | */ |
303 | int DIVA_INIT_FUNCTION mntfunc_init(int *buffer_length, void **buffer, | 303 | int __init mntfunc_init(int *buffer_length, void **buffer, |
304 | unsigned long diva_dbg_mem) | 304 | unsigned long diva_dbg_mem) |
305 | { | 305 | { |
306 | if (*buffer_length < 64) { | 306 | if (*buffer_length < 64) { |
@@ -348,7 +348,7 @@ int DIVA_INIT_FUNCTION mntfunc_init(int *buffer_length, void **buffer, | |||
348 | /* | 348 | /* |
349 | * exit | 349 | * exit |
350 | */ | 350 | */ |
351 | void DIVA_EXIT_FUNCTION mntfunc_finit(void) | 351 | void __exit mntfunc_finit(void) |
352 | { | 352 | { |
353 | void *buffer; | 353 | void *buffer; |
354 | int i = 100; | 354 | int i = 100; |
diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index 7331c3b14a5f..b2edb7590dda 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h | |||
@@ -38,9 +38,6 @@ | |||
38 | #define DIVA_NO_DEBUGLIB | 38 | #define DIVA_NO_DEBUGLIB |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #define DIVA_INIT_FUNCTION __init | ||
42 | #define DIVA_EXIT_FUNCTION __exit | ||
43 | |||
44 | #define DIVA_USER_MODE_CARD_CONFIG 1 | 41 | #define DIVA_USER_MODE_CARD_CONFIG 1 |
45 | #define USE_EXTENDED_DEBUGS 1 | 42 | #define USE_EXTENDED_DEBUGS 1 |
46 | 43 | ||