HID: adding __init/__exit macros to module init/exit functions
authorPeter Huewe <peterhuewe@gmx.de>
Thu, 2 Jul 2009 17:08:38 +0000 (19:08 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 22 Jul 2009 23:28:01 +0000 (01:28 +0200)
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>
24 files changed:
drivers/hid/hid-a4tech.c
drivers/hid/hid-apple.c
drivers/hid/hid-belkin.c
drivers/hid/hid-cherry.c
drivers/hid/hid-chicony.c
drivers/hid/hid-cypress.c
drivers/hid/hid-ezkey.c
drivers/hid/hid-gyration.c
drivers/hid/hid-kensington.c
drivers/hid/hid-kye.c
drivers/hid/hid-lg.c
drivers/hid/hid-microsoft.c
drivers/hid/hid-monterey.c
drivers/hid/hid-ntrig.c
drivers/hid/hid-petalynx.c
drivers/hid/hid-pl.c
drivers/hid/hid-samsung.c
drivers/hid/hid-sjoy.c
drivers/hid/hid-sony.c
drivers/hid/hid-sunplus.c
drivers/hid/hid-tmff.c
drivers/hid/hid-topseed.c
drivers/hid/hid-wacom.c
drivers/hid/hid-zpff.c

index 42ea359..df474c6 100644 (file)
@@ -145,12 +145,12 @@ static struct hid_driver a4_driver = {
        .remove = a4_remove,
 };
 
-static int a4_init(void)
+static int __init a4_init(void)
 {
        return hid_register_driver(&a4_driver);
 }
 
-static void a4_exit(void)
+static void __exit a4_exit(void)
 {
        hid_unregister_driver(&a4_driver);
 }
index 303ccce..4b96e7a 100644 (file)
@@ -451,7 +451,7 @@ static struct hid_driver apple_driver = {
        .input_mapped = apple_input_mapped,
 };
 
-static int apple_init(void)
+static int __init apple_init(void)
 {
        int ret;
 
@@ -462,7 +462,7 @@ static int apple_init(void)
        return ret;
 }
 
-static void apple_exit(void)
+static void __exit apple_exit(void)
 {
        hid_unregister_driver(&apple_driver);
 }
index 2f67231..4ce7aa3 100644 (file)
@@ -88,12 +88,12 @@ static struct hid_driver belkin_driver = {
        .probe = belkin_probe,
 };
 
-static int belkin_init(void)
+static int __init belkin_init(void)
 {
        return hid_register_driver(&belkin_driver);
 }
 
-static void belkin_exit(void)
+static void __exit belkin_exit(void)
 {
        hid_unregister_driver(&belkin_driver);
 }
index ab8209e..7e597d7 100644 (file)
@@ -70,12 +70,12 @@ static struct hid_driver ch_driver = {
        .input_mapping = ch_input_mapping,
 };
 
-static int ch_init(void)
+static int __init ch_init(void)
 {
        return hid_register_driver(&ch_driver);
 }
 
-static void ch_exit(void)
+static void __exit ch_exit(void)
 {
        hid_unregister_driver(&ch_driver);
 }
index 7f91076..8965ad9 100644 (file)
@@ -63,12 +63,12 @@ static struct hid_driver ch_driver = {
        .input_mapping = ch_input_mapping,
 };
 
-static int ch_init(void)
+static int __init ch_init(void)
 {
        return hid_register_driver(&ch_driver);
 }
 
-static void ch_exit(void)
+static void __exit ch_exit(void)
 {
        hid_unregister_driver(&ch_driver);
 }
index 9d6d3b9..62e9cb1 100644 (file)
@@ -141,12 +141,12 @@ static struct hid_driver cp_driver = {
        .probe = cp_probe,
 };
 
-static int cp_init(void)
+static int __init cp_init(void)
 {
        return hid_register_driver(&cp_driver);
 }
 
-static void cp_exit(void)
+static void __exit cp_exit(void)
 {
        hid_unregister_driver(&cp_driver);
 }
index 0a1fe05..ca1163e 100644 (file)
@@ -78,12 +78,12 @@ static struct hid_driver ez_driver = {
        .event = ez_event,
 };
 
-static int ez_init(void)
+static int __init ez_init(void)
 {
        return hid_register_driver(&ez_driver);
 }
 
-static void ez_exit(void)
+static void __exit ez_exit(void)
 {
        hid_unregister_driver(&ez_driver);
 }
index d42d222..cab13e8 100644 (file)
@@ -81,12 +81,12 @@ static struct hid_driver gyration_driver = {
        .event = gyration_event,
 };
 
-static int gyration_init(void)
+static int __init gyration_init(void)
 {
        return hid_register_driver(&gyration_driver);
 }
 
-static void gyration_exit(void)
+static void __exit gyration_exit(void)
 {
        hid_unregister_driver(&gyration_driver);
 }
index 7353bd7..a5b4016 100644 (file)
@@ -48,12 +48,12 @@ static struct hid_driver ks_driver = {
        .input_mapping = ks_input_mapping,
 };
 
-static int ks_init(void)
+static int __init ks_init(void)
 {
        return hid_register_driver(&ks_driver);
 }
 
-static void ks_exit(void)
+static void __exit ks_exit(void)
 {
        hid_unregister_driver(&ks_driver);
 }
index 72ee3fe..f887171 100644 (file)
@@ -54,12 +54,12 @@ static struct hid_driver kye_driver = {
        .report_fixup = kye_report_fixup,
 };
 
-static int kye_init(void)
+static int __init kye_init(void)
 {
        return hid_register_driver(&kye_driver);
 }
 
-static void kye_exit(void)
+static void __exit kye_exit(void)
 {
        hid_unregister_driver(&kye_driver);
 }
index b30af30..0f870a3 100644 (file)
@@ -317,12 +317,12 @@ static struct hid_driver lg_driver = {
        .probe = lg_probe,
 };
 
-static int lg_init(void)
+static int __init lg_init(void)
 {
        return hid_register_driver(&lg_driver);
 }
 
-static void lg_exit(void)
+static void __exit lg_exit(void)
 {
        hid_unregister_driver(&lg_driver);
 }
index 5e9e37a..359cc44 100644 (file)
@@ -197,12 +197,12 @@ static struct hid_driver ms_driver = {
        .probe = ms_probe,
 };
 
-static int ms_init(void)
+static int __init ms_init(void)
 {
        return hid_register_driver(&ms_driver);
 }
 
-static void ms_exit(void)
+static void __exit ms_exit(void)
 {
        hid_unregister_driver(&ms_driver);
 }
index 240f876..2cd05aa 100644 (file)
@@ -65,12 +65,12 @@ static struct hid_driver mr_driver = {
        .input_mapping = mr_input_mapping,
 };
 
-static int mr_init(void)
+static int __init mr_init(void)
 {
        return hid_register_driver(&mr_driver);
 }
 
-static void mr_exit(void)
+static void __exit mr_exit(void)
 {
        hid_unregister_driver(&mr_driver);
 }
index d7b3e61..49ce69d 100644 (file)
@@ -290,12 +290,12 @@ static struct hid_driver ntrig_driver = {
        .event = ntrig_event,
 };
 
-static int ntrig_init(void)
+static int __init ntrig_init(void)
 {
        return hid_register_driver(&ntrig_driver);
 }
 
-static void ntrig_exit(void)
+static void __exit ntrig_exit(void)
 {
        hid_unregister_driver(&ntrig_driver);
 }
index 2e83e8f..500fbd0 100644 (file)
@@ -105,12 +105,12 @@ static struct hid_driver pl_driver = {
        .probe = pl_probe,
 };
 
-static int pl_init(void)
+static int __init pl_init(void)
 {
        return hid_register_driver(&pl_driver);
 }
 
-static void pl_exit(void)
+static void __exit pl_exit(void)
 {
        hid_unregister_driver(&pl_driver);
 }
index 4db9a34..c6d7dbc 100644 (file)
@@ -217,12 +217,12 @@ static struct hid_driver pl_driver = {
        .probe = pl_probe,
 };
 
-static int pl_init(void)
+static int __init pl_init(void)
 {
        return hid_register_driver(&pl_driver);
 }
 
-static void pl_exit(void)
+static void __exit pl_exit(void)
 {
        hid_unregister_driver(&pl_driver);
 }
index ba91d94..5b222ee 100644 (file)
@@ -112,12 +112,12 @@ static struct hid_driver samsung_driver = {
        .probe = samsung_probe,
 };
 
-static int samsung_init(void)
+static int __init samsung_init(void)
 {
        return hid_register_driver(&samsung_driver);
 }
 
-static void samsung_exit(void)
+static void __exit samsung_exit(void)
 {
        hid_unregister_driver(&samsung_driver);
 }
index eab169e..203c438 100644 (file)
@@ -163,12 +163,12 @@ static struct hid_driver sjoy_driver = {
        .probe = sjoy_probe,
 };
 
-static int sjoy_init(void)
+static int __init sjoy_init(void)
 {
        return hid_register_driver(&sjoy_driver);
 }
 
-static void sjoy_exit(void)
+static void __exit sjoy_exit(void)
 {
        hid_unregister_driver(&sjoy_driver);
 }
index c259938..4e84502 100644 (file)
@@ -135,12 +135,12 @@ static struct hid_driver sony_driver = {
        .report_fixup = sony_report_fixup,
 };
 
-static int sony_init(void)
+static int __init sony_init(void)
 {
        return hid_register_driver(&sony_driver);
 }
 
-static void sony_exit(void)
+static void __exit sony_exit(void)
 {
        hid_unregister_driver(&sony_driver);
 }
index e0a8fd3..438107d 100644 (file)
@@ -65,12 +65,12 @@ static struct hid_driver sp_driver = {
        .input_mapping = sp_input_mapping,
 };
 
-static int sp_init(void)
+static int __init sp_init(void)
 {
        return hid_register_driver(&sp_driver);
 }
 
-static void sp_exit(void)
+static void __exit sp_exit(void)
 {
        hid_unregister_driver(&sp_driver);
 }
index 6589a7c..167ea74 100644 (file)
@@ -263,12 +263,12 @@ static struct hid_driver tm_driver = {
        .probe = tm_probe,
 };
 
-static int tm_init(void)
+static int __init tm_init(void)
 {
        return hid_register_driver(&tm_driver);
 }
 
-static void tm_exit(void)
+static void __exit tm_exit(void)
 {
        hid_unregister_driver(&tm_driver);
 }
index 152ccfa..6925eda 100644 (file)
@@ -60,12 +60,12 @@ static struct hid_driver ts_driver = {
        .input_mapping = ts_input_mapping,
 };
 
-static int ts_init(void)
+static int __init ts_init(void)
 {
        return hid_register_driver(&ts_driver);
 }
 
-static void ts_exit(void)
+static void __exit ts_exit(void)
 {
        hid_unregister_driver(&ts_driver);
 }
index 1f9237f..7475421 100644 (file)
@@ -237,7 +237,7 @@ static struct hid_driver wacom_driver = {
        .raw_event = wacom_raw_event,
 };
 
-static int wacom_init(void)
+static int __init wacom_init(void)
 {
        int ret;
 
@@ -248,7 +248,7 @@ static int wacom_init(void)
        return ret;
 }
 
-static void wacom_exit(void)
+static void __exit wacom_exit(void)
 {
        hid_unregister_driver(&wacom_driver);
 }
index 57f7107..a79f0d7 100644 (file)
@@ -152,12 +152,12 @@ static struct hid_driver zp_driver = {
        .probe = zp_probe,
 };
 
-static int zp_init(void)
+static int __init zp_init(void)
 {
        return hid_register_driver(&zp_driver);
 }
 
-static void zp_exit(void)
+static void __exit zp_exit(void)
 {
        hid_unregister_driver(&zp_driver);
 }