aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2009-07-02 13:08:38 -0400
committerJiri Kosina <jkosina@suse.cz>2009-07-22 19:28:01 -0400
commita24f423bdf253ccee369adc6c5451b40a0716fbb (patch)
treecd33843be6cea5a78a966e3b5e733f5bc99681aa
parent7a84b1336a145d683fb8cdfd6c2c67545a58b126 (diff)
HID: adding __init/__exit macros to module init/exit functions
Trivial patch which adds the __init and __exit macros to the module_init / module_exit functions of several HID drivers from drivers/hid/ Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-a4tech.c4
-rw-r--r--drivers/hid/hid-apple.c4
-rw-r--r--drivers/hid/hid-belkin.c4
-rw-r--r--drivers/hid/hid-cherry.c4
-rw-r--r--drivers/hid/hid-chicony.c4
-rw-r--r--drivers/hid/hid-cypress.c4
-rw-r--r--drivers/hid/hid-ezkey.c4
-rw-r--r--drivers/hid/hid-gyration.c4
-rw-r--r--drivers/hid/hid-kensington.c4
-rw-r--r--drivers/hid/hid-kye.c4
-rw-r--r--drivers/hid/hid-lg.c4
-rw-r--r--drivers/hid/hid-microsoft.c4
-rw-r--r--drivers/hid/hid-monterey.c4
-rw-r--r--drivers/hid/hid-ntrig.c4
-rw-r--r--drivers/hid/hid-petalynx.c4
-rw-r--r--drivers/hid/hid-pl.c4
-rw-r--r--drivers/hid/hid-samsung.c4
-rw-r--r--drivers/hid/hid-sjoy.c4
-rw-r--r--drivers/hid/hid-sony.c4
-rw-r--r--drivers/hid/hid-sunplus.c4
-rw-r--r--drivers/hid/hid-tmff.c4
-rw-r--r--drivers/hid/hid-topseed.c4
-rw-r--r--drivers/hid/hid-wacom.c4
-rw-r--r--drivers/hid/hid-zpff.c4
24 files changed, 48 insertions, 48 deletions
diff --git a/drivers/hid/hid-a4tech.c b/drivers/hid/hid-a4tech.c
index 42ea359e94cf..df474c699fb8 100644
--- a/drivers/hid/hid-a4tech.c
+++ b/drivers/hid/hid-a4tech.c
@@ -145,12 +145,12 @@ static struct hid_driver a4_driver = {
145 .remove = a4_remove, 145 .remove = a4_remove,
146}; 146};
147 147
148static int a4_init(void) 148static int __init a4_init(void)
149{ 149{
150 return hid_register_driver(&a4_driver); 150 return hid_register_driver(&a4_driver);
151} 151}
152 152
153static void a4_exit(void) 153static void __exit a4_exit(void)
154{ 154{
155 hid_unregister_driver(&a4_driver); 155 hid_unregister_driver(&a4_driver);
156} 156}
diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
index 303ccce05bb3..4b96e7a898cf 100644
--- a/drivers/hid/hid-apple.c
+++ b/drivers/hid/hid-apple.c
@@ -451,7 +451,7 @@ static struct hid_driver apple_driver = {
451 .input_mapped = apple_input_mapped, 451 .input_mapped = apple_input_mapped,
452}; 452};
453 453
454static int apple_init(void) 454static int __init apple_init(void)
455{ 455{
456 int ret; 456 int ret;
457 457
@@ -462,7 +462,7 @@ static int apple_init(void)
462 return ret; 462 return ret;
463} 463}
464 464
465static void apple_exit(void) 465static void __exit apple_exit(void)
466{ 466{
467 hid_unregister_driver(&apple_driver); 467 hid_unregister_driver(&apple_driver);
468} 468}
diff --git a/drivers/hid/hid-belkin.c b/drivers/hid/hid-belkin.c
index 2f6723133a4b..4ce7aa3a519f 100644
--- a/drivers/hid/hid-belkin.c
+++ b/drivers/hid/hid-belkin.c
@@ -88,12 +88,12 @@ static struct hid_driver belkin_driver = {
88 .probe = belkin_probe, 88 .probe = belkin_probe,
89}; 89};
90 90
91static int belkin_init(void) 91static int __init belkin_init(void)
92{ 92{
93 return hid_register_driver(&belkin_driver); 93 return hid_register_driver(&belkin_driver);
94} 94}
95 95
96static void belkin_exit(void) 96static void __exit belkin_exit(void)
97{ 97{
98 hid_unregister_driver(&belkin_driver); 98 hid_unregister_driver(&belkin_driver);
99} 99}
diff --git a/drivers/hid/hid-cherry.c b/drivers/hid/hid-cherry.c
index ab8209e7e45c..7e597d7f770f 100644
--- a/drivers/hid/hid-cherry.c
+++ b/drivers/hid/hid-cherry.c
@@ -70,12 +70,12 @@ static struct hid_driver ch_driver = {
70 .input_mapping = ch_input_mapping, 70 .input_mapping = ch_input_mapping,
71}; 71};
72 72
73static int ch_init(void) 73static int __init ch_init(void)
74{ 74{
75 return hid_register_driver(&ch_driver); 75 return hid_register_driver(&ch_driver);
76} 76}
77 77
78static void ch_exit(void) 78static void __exit ch_exit(void)
79{ 79{
80 hid_unregister_driver(&ch_driver); 80 hid_unregister_driver(&ch_driver);
81} 81}
diff --git a/drivers/hid/hid-chicony.c b/drivers/hid/hid-chicony.c
index 7f91076d8493..8965ad93d510 100644
--- a/drivers/hid/hid-chicony.c
+++ b/drivers/hid/hid-chicony.c
@@ -63,12 +63,12 @@ static struct hid_driver ch_driver = {
63 .input_mapping = ch_input_mapping, 63 .input_mapping = ch_input_mapping,
64}; 64};
65 65
66static int ch_init(void) 66static int __init ch_init(void)
67{ 67{
68 return hid_register_driver(&ch_driver); 68 return hid_register_driver(&ch_driver);
69} 69}
70 70
71static void ch_exit(void) 71static void __exit ch_exit(void)
72{ 72{
73 hid_unregister_driver(&ch_driver); 73 hid_unregister_driver(&ch_driver);
74} 74}
diff --git a/drivers/hid/hid-cypress.c b/drivers/hid/hid-cypress.c
index 9d6d3b91773b..62e9cb10e88c 100644
--- a/drivers/hid/hid-cypress.c
+++ b/drivers/hid/hid-cypress.c
@@ -141,12 +141,12 @@ static struct hid_driver cp_driver = {
141 .probe = cp_probe, 141 .probe = cp_probe,
142}; 142};
143 143
144static int cp_init(void) 144static int __init cp_init(void)
145{ 145{
146 return hid_register_driver(&cp_driver); 146 return hid_register_driver(&cp_driver);
147} 147}
148 148
149static void cp_exit(void) 149static void __exit cp_exit(void)
150{ 150{
151 hid_unregister_driver(&cp_driver); 151 hid_unregister_driver(&cp_driver);
152} 152}
diff --git a/drivers/hid/hid-ezkey.c b/drivers/hid/hid-ezkey.c
index 0a1fe054799b..ca1163e9d42d 100644
--- a/drivers/hid/hid-ezkey.c
+++ b/drivers/hid/hid-ezkey.c
@@ -78,12 +78,12 @@ static struct hid_driver ez_driver = {
78 .event = ez_event, 78 .event = ez_event,
79}; 79};
80 80
81static int ez_init(void) 81static int __init ez_init(void)
82{ 82{
83 return hid_register_driver(&ez_driver); 83 return hid_register_driver(&ez_driver);
84} 84}
85 85
86static void ez_exit(void) 86static void __exit ez_exit(void)
87{ 87{
88 hid_unregister_driver(&ez_driver); 88 hid_unregister_driver(&ez_driver);
89} 89}
diff --git a/drivers/hid/hid-gyration.c b/drivers/hid/hid-gyration.c
index d42d222097a8..cab13e8c7d29 100644
--- a/drivers/hid/hid-gyration.c
+++ b/drivers/hid/hid-gyration.c
@@ -81,12 +81,12 @@ static struct hid_driver gyration_driver = {
81 .event = gyration_event, 81 .event = gyration_event,
82}; 82};
83 83
84static int gyration_init(void) 84static int __init gyration_init(void)
85{ 85{
86 return hid_register_driver(&gyration_driver); 86 return hid_register_driver(&gyration_driver);
87} 87}
88 88
89static void gyration_exit(void) 89static void __exit gyration_exit(void)
90{ 90{
91 hid_unregister_driver(&gyration_driver); 91 hid_unregister_driver(&gyration_driver);
92} 92}
diff --git a/drivers/hid/hid-kensington.c b/drivers/hid/hid-kensington.c
index 7353bd79cbe9..a5b4016e9bd7 100644
--- a/drivers/hid/hid-kensington.c
+++ b/drivers/hid/hid-kensington.c
@@ -48,12 +48,12 @@ static struct hid_driver ks_driver = {
48 .input_mapping = ks_input_mapping, 48 .input_mapping = ks_input_mapping,
49}; 49};
50 50
51static int ks_init(void) 51static int __init ks_init(void)
52{ 52{
53 return hid_register_driver(&ks_driver); 53 return hid_register_driver(&ks_driver);
54} 54}
55 55
56static void ks_exit(void) 56static void __exit ks_exit(void)
57{ 57{
58 hid_unregister_driver(&ks_driver); 58 hid_unregister_driver(&ks_driver);
59} 59}
diff --git a/drivers/hid/hid-kye.c b/drivers/hid/hid-kye.c
index 72ee3fec56d9..f8871712b7b5 100644
--- a/drivers/hid/hid-kye.c
+++ b/drivers/hid/hid-kye.c
@@ -54,12 +54,12 @@ static struct hid_driver kye_driver = {
54 .report_fixup = kye_report_fixup, 54 .report_fixup = kye_report_fixup,
55}; 55};
56 56
57static int kye_init(void) 57static int __init kye_init(void)
58{ 58{
59 return hid_register_driver(&kye_driver); 59 return hid_register_driver(&kye_driver);
60} 60}
61 61
62static void kye_exit(void) 62static void __exit kye_exit(void)
63{ 63{
64 hid_unregister_driver(&kye_driver); 64 hid_unregister_driver(&kye_driver);
65} 65}
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c
index b30af30a0b17..0f870a3243ed 100644
--- a/drivers/hid/hid-lg.c
+++ b/drivers/hid/hid-lg.c
@@ -317,12 +317,12 @@ static struct hid_driver lg_driver = {
317 .probe = lg_probe, 317 .probe = lg_probe,
318}; 318};
319 319
320static int lg_init(void) 320static int __init lg_init(void)
321{ 321{
322 return hid_register_driver(&lg_driver); 322 return hid_register_driver(&lg_driver);
323} 323}
324 324
325static void lg_exit(void) 325static void __exit lg_exit(void)
326{ 326{
327 hid_unregister_driver(&lg_driver); 327 hid_unregister_driver(&lg_driver);
328} 328}
diff --git a/drivers/hid/hid-microsoft.c b/drivers/hid/hid-microsoft.c
index 5e9e37a0506d..359cc447c6c6 100644
--- a/drivers/hid/hid-microsoft.c
+++ b/drivers/hid/hid-microsoft.c
@@ -197,12 +197,12 @@ static struct hid_driver ms_driver = {
197 .probe = ms_probe, 197 .probe = ms_probe,
198}; 198};
199 199
200static int ms_init(void) 200static int __init ms_init(void)
201{ 201{
202 return hid_register_driver(&ms_driver); 202 return hid_register_driver(&ms_driver);
203} 203}
204 204
205static void ms_exit(void) 205static void __exit ms_exit(void)
206{ 206{
207 hid_unregister_driver(&ms_driver); 207 hid_unregister_driver(&ms_driver);
208} 208}
diff --git a/drivers/hid/hid-monterey.c b/drivers/hid/hid-monterey.c
index 240f87618be6..2cd05aa244b9 100644
--- a/drivers/hid/hid-monterey.c
+++ b/drivers/hid/hid-monterey.c
@@ -65,12 +65,12 @@ static struct hid_driver mr_driver = {
65 .input_mapping = mr_input_mapping, 65 .input_mapping = mr_input_mapping,
66}; 66};
67 67
68static int mr_init(void) 68static int __init mr_init(void)
69{ 69{
70 return hid_register_driver(&mr_driver); 70 return hid_register_driver(&mr_driver);
71} 71}
72 72
73static void mr_exit(void) 73static void __exit mr_exit(void)
74{ 74{
75 hid_unregister_driver(&mr_driver); 75 hid_unregister_driver(&mr_driver);
76} 76}
diff --git a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c
index d7b3e61fbf8f..49ce69d7bba7 100644
--- a/drivers/hid/hid-ntrig.c
+++ b/drivers/hid/hid-ntrig.c
@@ -290,12 +290,12 @@ static struct hid_driver ntrig_driver = {
290 .event = ntrig_event, 290 .event = ntrig_event,
291}; 291};
292 292
293static int ntrig_init(void) 293static int __init ntrig_init(void)
294{ 294{
295 return hid_register_driver(&ntrig_driver); 295 return hid_register_driver(&ntrig_driver);
296} 296}
297 297
298static void ntrig_exit(void) 298static void __exit ntrig_exit(void)
299{ 299{
300 hid_unregister_driver(&ntrig_driver); 300 hid_unregister_driver(&ntrig_driver);
301} 301}
diff --git a/drivers/hid/hid-petalynx.c b/drivers/hid/hid-petalynx.c
index 2e83e8ff891a..500fbd0652dc 100644
--- a/drivers/hid/hid-petalynx.c
+++ b/drivers/hid/hid-petalynx.c
@@ -105,12 +105,12 @@ static struct hid_driver pl_driver = {
105 .probe = pl_probe, 105 .probe = pl_probe,
106}; 106};
107 107
108static int pl_init(void) 108static int __init pl_init(void)
109{ 109{
110 return hid_register_driver(&pl_driver); 110 return hid_register_driver(&pl_driver);
111} 111}
112 112
113static void pl_exit(void) 113static void __exit pl_exit(void)
114{ 114{
115 hid_unregister_driver(&pl_driver); 115 hid_unregister_driver(&pl_driver);
116} 116}
diff --git a/drivers/hid/hid-pl.c b/drivers/hid/hid-pl.c
index 4db9a3483760..c6d7dbc935b1 100644
--- a/drivers/hid/hid-pl.c
+++ b/drivers/hid/hid-pl.c
@@ -217,12 +217,12 @@ static struct hid_driver pl_driver = {
217 .probe = pl_probe, 217 .probe = pl_probe,
218}; 218};
219 219
220static int pl_init(void) 220static int __init pl_init(void)
221{ 221{
222 return hid_register_driver(&pl_driver); 222 return hid_register_driver(&pl_driver);
223} 223}
224 224
225static void pl_exit(void) 225static void __exit pl_exit(void)
226{ 226{
227 hid_unregister_driver(&pl_driver); 227 hid_unregister_driver(&pl_driver);
228} 228}
diff --git a/drivers/hid/hid-samsung.c b/drivers/hid/hid-samsung.c
index ba91d9485ad0..5b222eed0692 100644
--- a/drivers/hid/hid-samsung.c
+++ b/drivers/hid/hid-samsung.c
@@ -112,12 +112,12 @@ static struct hid_driver samsung_driver = {
112 .probe = samsung_probe, 112 .probe = samsung_probe,
113}; 113};
114 114
115static int samsung_init(void) 115static int __init samsung_init(void)
116{ 116{
117 return hid_register_driver(&samsung_driver); 117 return hid_register_driver(&samsung_driver);
118} 118}
119 119
120static void samsung_exit(void) 120static void __exit samsung_exit(void)
121{ 121{
122 hid_unregister_driver(&samsung_driver); 122 hid_unregister_driver(&samsung_driver);
123} 123}
diff --git a/drivers/hid/hid-sjoy.c b/drivers/hid/hid-sjoy.c
index eab169e5c371..203c438b016f 100644
--- a/drivers/hid/hid-sjoy.c
+++ b/drivers/hid/hid-sjoy.c
@@ -163,12 +163,12 @@ static struct hid_driver sjoy_driver = {
163 .probe = sjoy_probe, 163 .probe = sjoy_probe,
164}; 164};
165 165
166static int sjoy_init(void) 166static int __init sjoy_init(void)
167{ 167{
168 return hid_register_driver(&sjoy_driver); 168 return hid_register_driver(&sjoy_driver);
169} 169}
170 170
171static void sjoy_exit(void) 171static void __exit sjoy_exit(void)
172{ 172{
173 hid_unregister_driver(&sjoy_driver); 173 hid_unregister_driver(&sjoy_driver);
174} 174}
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index c2599388a350..4e8450228a24 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -135,12 +135,12 @@ static struct hid_driver sony_driver = {
135 .report_fixup = sony_report_fixup, 135 .report_fixup = sony_report_fixup,
136}; 136};
137 137
138static int sony_init(void) 138static int __init sony_init(void)
139{ 139{
140 return hid_register_driver(&sony_driver); 140 return hid_register_driver(&sony_driver);
141} 141}
142 142
143static void sony_exit(void) 143static void __exit sony_exit(void)
144{ 144{
145 hid_unregister_driver(&sony_driver); 145 hid_unregister_driver(&sony_driver);
146} 146}
diff --git a/drivers/hid/hid-sunplus.c b/drivers/hid/hid-sunplus.c
index e0a8fd36a85b..438107d9f1b2 100644
--- a/drivers/hid/hid-sunplus.c
+++ b/drivers/hid/hid-sunplus.c
@@ -65,12 +65,12 @@ static struct hid_driver sp_driver = {
65 .input_mapping = sp_input_mapping, 65 .input_mapping = sp_input_mapping,
66}; 66};
67 67
68static int sp_init(void) 68static int __init sp_init(void)
69{ 69{
70 return hid_register_driver(&sp_driver); 70 return hid_register_driver(&sp_driver);
71} 71}
72 72
73static void sp_exit(void) 73static void __exit sp_exit(void)
74{ 74{
75 hid_unregister_driver(&sp_driver); 75 hid_unregister_driver(&sp_driver);
76} 76}
diff --git a/drivers/hid/hid-tmff.c b/drivers/hid/hid-tmff.c
index 6589a7c790e8..167ea746fb9c 100644
--- a/drivers/hid/hid-tmff.c
+++ b/drivers/hid/hid-tmff.c
@@ -263,12 +263,12 @@ static struct hid_driver tm_driver = {
263 .probe = tm_probe, 263 .probe = tm_probe,
264}; 264};
265 265
266static int tm_init(void) 266static int __init tm_init(void)
267{ 267{
268 return hid_register_driver(&tm_driver); 268 return hid_register_driver(&tm_driver);
269} 269}
270 270
271static void tm_exit(void) 271static void __exit tm_exit(void)
272{ 272{
273 hid_unregister_driver(&tm_driver); 273 hid_unregister_driver(&tm_driver);
274} 274}
diff --git a/drivers/hid/hid-topseed.c b/drivers/hid/hid-topseed.c
index 152ccfabeba5..6925eda1081a 100644
--- a/drivers/hid/hid-topseed.c
+++ b/drivers/hid/hid-topseed.c
@@ -60,12 +60,12 @@ static struct hid_driver ts_driver = {
60 .input_mapping = ts_input_mapping, 60 .input_mapping = ts_input_mapping,
61}; 61};
62 62
63static int ts_init(void) 63static int __init ts_init(void)
64{ 64{
65 return hid_register_driver(&ts_driver); 65 return hid_register_driver(&ts_driver);
66} 66}
67 67
68static void ts_exit(void) 68static void __exit ts_exit(void)
69{ 69{
70 hid_unregister_driver(&ts_driver); 70 hid_unregister_driver(&ts_driver);
71} 71}
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c
index 1f9237f511e3..747542172242 100644
--- a/drivers/hid/hid-wacom.c
+++ b/drivers/hid/hid-wacom.c
@@ -237,7 +237,7 @@ static struct hid_driver wacom_driver = {
237 .raw_event = wacom_raw_event, 237 .raw_event = wacom_raw_event,
238}; 238};
239 239
240static int wacom_init(void) 240static int __init wacom_init(void)
241{ 241{
242 int ret; 242 int ret;
243 243
@@ -248,7 +248,7 @@ static int wacom_init(void)
248 return ret; 248 return ret;
249} 249}
250 250
251static void wacom_exit(void) 251static void __exit wacom_exit(void)
252{ 252{
253 hid_unregister_driver(&wacom_driver); 253 hid_unregister_driver(&wacom_driver);
254} 254}
diff --git a/drivers/hid/hid-zpff.c b/drivers/hid/hid-zpff.c
index 57f710757bf4..a79f0d78c6be 100644
--- a/drivers/hid/hid-zpff.c
+++ b/drivers/hid/hid-zpff.c
@@ -152,12 +152,12 @@ static struct hid_driver zp_driver = {
152 .probe = zp_probe, 152 .probe = zp_probe,
153}; 153};
154 154
155static int zp_init(void) 155static int __init zp_init(void)
156{ 156{
157 return hid_register_driver(&zp_driver); 157 return hid_register_driver(&zp_driver);
158} 158}
159 159
160static void zp_exit(void) 160static void __exit zp_exit(void)
161{ 161{
162 hid_unregister_driver(&zp_driver); 162 hid_unregister_driver(&zp_driver);
163} 163}