提交 a24f423b 编写于 作者: P Peter Huewe 提交者: Jiri Kosina

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: NPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 7a84b133
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册