Skip to contentSkip to conversation

HID: Correctly mark init and exit functions of Roccat Kone module

PATCH Applied Stefan Achatz 2 participants 2 messages May 12, 2010 – May 18, 2010

Subsystems (2)
lore
Share & tools
lore

Stefan Achatz

author maintainer
#0 lore raw

PATCH 3/5 HID: Correctly mark init and exit functions of Roccat Kone module

Quoted 1 line

From bbc9f26b13e7756061adb62c561d40f060623bd7 Mon Sep 17 00:00:00 2001

From: Stefan Achatz <[email protected]>
Date: Sat, 8 May 2010 17:20:38 +0200
Subject: [PATCH 3/5] HID: Correctly mark init and exit functions of Roccat Kone module

Added the __init and __exit hints for module functions.

---
 drivers/hid/hid-roccat-kone.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/hid/hid-roccat-kone.c
index 9d68442..0b1db24 100644

drivers/hid/hid-roccat-kone.c +2 -2
@@ -990,12 +990,12 @@ static struct hid_driver kone_driver = {
 		.raw_event = kone_raw_event
 };
 
-static int kone_init(void)
+static int __init kone_init(void)
 {
 	return hid_register_driver(&kone_driver);
 }
 
-static void kone_exit(void)
+static void __exit kone_exit(void)
 {
 	hid_unregister_driver(&kone_driver);
 }
Signature · 1 line
1.6.6.1
Applied
#1 lore raw
Quoted 23 lines · Stefan Achatz
Quoted 1 line

From bbc9f26b13e7756061adb62c561d40f060623bd7 Mon Sep 17 00:00:00 2001

From: Stefan Achatz <[email protected]>
Date: Sat, 8 May 2010 17:20:38 +0200
Subject: [PATCH 3/5] HID: Correctly mark init and exit functions of Roccat Kone module

Added the __init and __exit hints for module functions.

---
 drivers/hid/hid-roccat-kone.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/hid/hid-roccat-kone.c +0 -1
index 9d68442..0b1db24 100644
@@ -990,12 +990,12 @@ static struct hid_driver kone_driver = {
 		.raw_event = kone_raw_event
 };
 
-static int kone_init(void)

drivers/hid/hid-roccat-kone.c static struct hid_driver kone_driver = { · line 1001

Quoted 10 lines
drivers/hid/hid-roccat-kone.c +2 -1
+static int __init kone_init(void)
 {
 	return hid_register_driver(&kone_driver);
 }
 
-static void kone_exit(void)
+static void __exit kone_exit(void)
 {
 	hid_unregister_driver(&kone_driver);
 }

Applied, thanks Stefan.

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