Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Huewe and committed by
Jiri Kosina
a24f423b 7a84b133

+48 -48
+2 -2
drivers/hid/hid-a4tech.c
··· 145 145 .remove = a4_remove, 146 146 }; 147 147 148 - static int a4_init(void) 148 + static int __init a4_init(void) 149 149 { 150 150 return hid_register_driver(&a4_driver); 151 151 } 152 152 153 - static void a4_exit(void) 153 + static void __exit a4_exit(void) 154 154 { 155 155 hid_unregister_driver(&a4_driver); 156 156 }
+2 -2
drivers/hid/hid-apple.c
··· 451 451 .input_mapped = apple_input_mapped, 452 452 }; 453 453 454 - static int apple_init(void) 454 + static int __init apple_init(void) 455 455 { 456 456 int ret; 457 457 ··· 462 462 return ret; 463 463 } 464 464 465 - static void apple_exit(void) 465 + static void __exit apple_exit(void) 466 466 { 467 467 hid_unregister_driver(&apple_driver); 468 468 }
+2 -2
drivers/hid/hid-belkin.c
··· 88 88 .probe = belkin_probe, 89 89 }; 90 90 91 - static int belkin_init(void) 91 + static int __init belkin_init(void) 92 92 { 93 93 return hid_register_driver(&belkin_driver); 94 94 } 95 95 96 - static void belkin_exit(void) 96 + static void __exit belkin_exit(void) 97 97 { 98 98 hid_unregister_driver(&belkin_driver); 99 99 }
+2 -2
drivers/hid/hid-cherry.c
··· 70 70 .input_mapping = ch_input_mapping, 71 71 }; 72 72 73 - static int ch_init(void) 73 + static int __init ch_init(void) 74 74 { 75 75 return hid_register_driver(&ch_driver); 76 76 } 77 77 78 - static void ch_exit(void) 78 + static void __exit ch_exit(void) 79 79 { 80 80 hid_unregister_driver(&ch_driver); 81 81 }
+2 -2
drivers/hid/hid-chicony.c
··· 63 63 .input_mapping = ch_input_mapping, 64 64 }; 65 65 66 - static int ch_init(void) 66 + static int __init ch_init(void) 67 67 { 68 68 return hid_register_driver(&ch_driver); 69 69 } 70 70 71 - static void ch_exit(void) 71 + static void __exit ch_exit(void) 72 72 { 73 73 hid_unregister_driver(&ch_driver); 74 74 }
+2 -2
drivers/hid/hid-cypress.c
··· 141 141 .probe = cp_probe, 142 142 }; 143 143 144 - static int cp_init(void) 144 + static int __init cp_init(void) 145 145 { 146 146 return hid_register_driver(&cp_driver); 147 147 } 148 148 149 - static void cp_exit(void) 149 + static void __exit cp_exit(void) 150 150 { 151 151 hid_unregister_driver(&cp_driver); 152 152 }
+2 -2
drivers/hid/hid-ezkey.c
··· 78 78 .event = ez_event, 79 79 }; 80 80 81 - static int ez_init(void) 81 + static int __init ez_init(void) 82 82 { 83 83 return hid_register_driver(&ez_driver); 84 84 } 85 85 86 - static void ez_exit(void) 86 + static void __exit ez_exit(void) 87 87 { 88 88 hid_unregister_driver(&ez_driver); 89 89 }
+2 -2
drivers/hid/hid-gyration.c
··· 81 81 .event = gyration_event, 82 82 }; 83 83 84 - static int gyration_init(void) 84 + static int __init gyration_init(void) 85 85 { 86 86 return hid_register_driver(&gyration_driver); 87 87 } 88 88 89 - static void gyration_exit(void) 89 + static void __exit gyration_exit(void) 90 90 { 91 91 hid_unregister_driver(&gyration_driver); 92 92 }
+2 -2
drivers/hid/hid-kensington.c
··· 48 48 .input_mapping = ks_input_mapping, 49 49 }; 50 50 51 - static int ks_init(void) 51 + static int __init ks_init(void) 52 52 { 53 53 return hid_register_driver(&ks_driver); 54 54 } 55 55 56 - static void ks_exit(void) 56 + static void __exit ks_exit(void) 57 57 { 58 58 hid_unregister_driver(&ks_driver); 59 59 }
+2 -2
drivers/hid/hid-kye.c
··· 54 54 .report_fixup = kye_report_fixup, 55 55 }; 56 56 57 - static int kye_init(void) 57 + static int __init kye_init(void) 58 58 { 59 59 return hid_register_driver(&kye_driver); 60 60 } 61 61 62 - static void kye_exit(void) 62 + static void __exit kye_exit(void) 63 63 { 64 64 hid_unregister_driver(&kye_driver); 65 65 }
+2 -2
drivers/hid/hid-lg.c
··· 317 317 .probe = lg_probe, 318 318 }; 319 319 320 - static int lg_init(void) 320 + static int __init lg_init(void) 321 321 { 322 322 return hid_register_driver(&lg_driver); 323 323 } 324 324 325 - static void lg_exit(void) 325 + static void __exit lg_exit(void) 326 326 { 327 327 hid_unregister_driver(&lg_driver); 328 328 }
+2 -2
drivers/hid/hid-microsoft.c
··· 197 197 .probe = ms_probe, 198 198 }; 199 199 200 - static int ms_init(void) 200 + static int __init ms_init(void) 201 201 { 202 202 return hid_register_driver(&ms_driver); 203 203 } 204 204 205 - static void ms_exit(void) 205 + static void __exit ms_exit(void) 206 206 { 207 207 hid_unregister_driver(&ms_driver); 208 208 }
+2 -2
drivers/hid/hid-monterey.c
··· 65 65 .input_mapping = mr_input_mapping, 66 66 }; 67 67 68 - static int mr_init(void) 68 + static int __init mr_init(void) 69 69 { 70 70 return hid_register_driver(&mr_driver); 71 71 } 72 72 73 - static void mr_exit(void) 73 + static void __exit mr_exit(void) 74 74 { 75 75 hid_unregister_driver(&mr_driver); 76 76 }
+2 -2
drivers/hid/hid-ntrig.c
··· 290 290 .event = ntrig_event, 291 291 }; 292 292 293 - static int ntrig_init(void) 293 + static int __init ntrig_init(void) 294 294 { 295 295 return hid_register_driver(&ntrig_driver); 296 296 } 297 297 298 - static void ntrig_exit(void) 298 + static void __exit ntrig_exit(void) 299 299 { 300 300 hid_unregister_driver(&ntrig_driver); 301 301 }
+2 -2
drivers/hid/hid-petalynx.c
··· 105 105 .probe = pl_probe, 106 106 }; 107 107 108 - static int pl_init(void) 108 + static int __init pl_init(void) 109 109 { 110 110 return hid_register_driver(&pl_driver); 111 111 } 112 112 113 - static void pl_exit(void) 113 + static void __exit pl_exit(void) 114 114 { 115 115 hid_unregister_driver(&pl_driver); 116 116 }
+2 -2
drivers/hid/hid-pl.c
··· 217 217 .probe = pl_probe, 218 218 }; 219 219 220 - static int pl_init(void) 220 + static int __init pl_init(void) 221 221 { 222 222 return hid_register_driver(&pl_driver); 223 223 } 224 224 225 - static void pl_exit(void) 225 + static void __exit pl_exit(void) 226 226 { 227 227 hid_unregister_driver(&pl_driver); 228 228 }
+2 -2
drivers/hid/hid-samsung.c
··· 112 112 .probe = samsung_probe, 113 113 }; 114 114 115 - static int samsung_init(void) 115 + static int __init samsung_init(void) 116 116 { 117 117 return hid_register_driver(&samsung_driver); 118 118 } 119 119 120 - static void samsung_exit(void) 120 + static void __exit samsung_exit(void) 121 121 { 122 122 hid_unregister_driver(&samsung_driver); 123 123 }
+2 -2
drivers/hid/hid-sjoy.c
··· 163 163 .probe = sjoy_probe, 164 164 }; 165 165 166 - static int sjoy_init(void) 166 + static int __init sjoy_init(void) 167 167 { 168 168 return hid_register_driver(&sjoy_driver); 169 169 } 170 170 171 - static void sjoy_exit(void) 171 + static void __exit sjoy_exit(void) 172 172 { 173 173 hid_unregister_driver(&sjoy_driver); 174 174 }
+2 -2
drivers/hid/hid-sony.c
··· 135 135 .report_fixup = sony_report_fixup, 136 136 }; 137 137 138 - static int sony_init(void) 138 + static int __init sony_init(void) 139 139 { 140 140 return hid_register_driver(&sony_driver); 141 141 } 142 142 143 - static void sony_exit(void) 143 + static void __exit sony_exit(void) 144 144 { 145 145 hid_unregister_driver(&sony_driver); 146 146 }
+2 -2
drivers/hid/hid-sunplus.c
··· 65 65 .input_mapping = sp_input_mapping, 66 66 }; 67 67 68 - static int sp_init(void) 68 + static int __init sp_init(void) 69 69 { 70 70 return hid_register_driver(&sp_driver); 71 71 } 72 72 73 - static void sp_exit(void) 73 + static void __exit sp_exit(void) 74 74 { 75 75 hid_unregister_driver(&sp_driver); 76 76 }
+2 -2
drivers/hid/hid-tmff.c
··· 263 263 .probe = tm_probe, 264 264 }; 265 265 266 - static int tm_init(void) 266 + static int __init tm_init(void) 267 267 { 268 268 return hid_register_driver(&tm_driver); 269 269 } 270 270 271 - static void tm_exit(void) 271 + static void __exit tm_exit(void) 272 272 { 273 273 hid_unregister_driver(&tm_driver); 274 274 }
+2 -2
drivers/hid/hid-topseed.c
··· 60 60 .input_mapping = ts_input_mapping, 61 61 }; 62 62 63 - static int ts_init(void) 63 + static int __init ts_init(void) 64 64 { 65 65 return hid_register_driver(&ts_driver); 66 66 } 67 67 68 - static void ts_exit(void) 68 + static void __exit ts_exit(void) 69 69 { 70 70 hid_unregister_driver(&ts_driver); 71 71 }
+2 -2
drivers/hid/hid-wacom.c
··· 237 237 .raw_event = wacom_raw_event, 238 238 }; 239 239 240 - static int wacom_init(void) 240 + static int __init wacom_init(void) 241 241 { 242 242 int ret; 243 243 ··· 248 248 return ret; 249 249 } 250 250 251 - static void wacom_exit(void) 251 + static void __exit wacom_exit(void) 252 252 { 253 253 hid_unregister_driver(&wacom_driver); 254 254 }
+2 -2
drivers/hid/hid-zpff.c
··· 152 152 .probe = zp_probe, 153 153 }; 154 154 155 - static int zp_init(void) 155 + static int __init zp_init(void) 156 156 { 157 157 return hid_register_driver(&zp_driver); 158 158 } 159 159 160 - static void zp_exit(void) 160 + static void __exit zp_exit(void) 161 161 { 162 162 hid_unregister_driver(&zp_driver); 163 163 }