Skip to contentSkip to conversation

hid: adding __init/__exit macros to twinhan.c

PATCH Applied Peter Hüwe 2 participants 2 messages Sep 29, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid: adding __init/__exit macros to twinhan.c

From: Peter Huewe <[email protected]>

Trivial patch which adds the __init/__exit macros to the module_init/ module_exit functions of the twinhan driver in hid.

Jiri, I guess this time you can decide wether it's the hid or the trivial tree ;) - thanks jiri for all your patience and work!

linux version v2.6.32-rc1 - linus git tree, Di 29. Sep 01:10:18 CEST 2009

---

drivers/hid/hid-twinhan.c +2 -2
index b05f602..c40afc5 100644
@@ -132,12 +132,12 @@ static struct hid_driver twinhan_driver = {
 	.input_mapping = twinhan_input_mapping,
 };
 
-static int twinhan_init(void)
+static int __init twinhan_init(void)
 {
 	return hid_register_driver(&twinhan_driver);
 }
 
-static void twinhan_exit(void)
+static void __exit twinhan_exit(void)
 {
 	hid_unregister_driver(&twinhan_driver);
 }
Applied
#1 lore raw
Quoted 21 lines · Peter Hüwe

From: Peter Huewe <[email protected]>

Trivial patch which adds the __init/__exit macros to the module_init/ module_exit functions of the twinhan driver in hid.

Jiri, I guess this time you can decide wether it's the hid or the trivial tree ;) - thanks jiri for all your patience and work!

linux version v2.6.32-rc1 - linus git tree, Di 29. Sep 01:10:18 CEST 2009

---

drivers/hid/hid-twinhan.c +0 -1
index b05f602..c40afc5 100644
@@ -132,12 +132,12 @@ static struct hid_driver twinhan_driver = {
 	.input_mapping = twinhan_input_mapping,
 };
 
-static int twinhan_init(void)

drivers/hid/hid-twinhan.c static struct hid_driver twinhan_driver = { · line 143

Quoted 10 lines
drivers/hid/hid-twinhan.c +2 -1
+static int __init twinhan_init(void)
 {
 	return hid_register_driver(&twinhan_driver);
 }
 
-static void twinhan_exit(void)
+static void __exit twinhan_exit(void)
 {
 	hid_unregister_driver(&twinhan_driver);
 }

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs, Novell Inc.