HID: Correctly mark init and exit functions of Roccat Kone module
Subsystems (2)
Stefan Achatz
maintainerPATCH 3/5 HID: Correctly mark init and exit functions of Roccat Kone module
Quoted 1 line
From
bbc9f26b13e7756061adb62c561d40f060623bd7Mon 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
Jiri Kosina
AppliedQuoted 23 lines · Stefan Achatz
Quoted 1 line
From
bbc9f26b13e7756061adb62c561d40f060623bd7Mon Sep 17 00:00:00 2001From: 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 moduleAdded the
__initand__exithints for module functions.Signed-off-by Stefan Achatz <[email protected]>--- drivers/hid/hid-roccat-kone.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/hid/hid-roccat-kone.c +0
-1@@ -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.