Skip to content

Commit

Permalink
HID: adding __init/__exit macros to module init/exit functions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
PeterHuewe authored and Jiri Kosina committed Jul 22, 2009
1 parent 7a84b13 commit a24f423
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions drivers/hid/hid-a4tech.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-belkin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-cherry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-chicony.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-cypress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-ezkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-gyration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-kensington.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-kye.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-lg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-microsoft.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-monterey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-ntrig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-petalynx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-pl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-sjoy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-sony.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-sunplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-tmff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-topseed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-wacom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/hid/hid-zpff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a24f423

Please sign in to comment.