diff mbox

hid: adding __init/__exit macros to twinhan.c

Message ID 200909290324.56042.PeterHuewe@gmx.de (mailing list archive)
State Accepted
Commit fa59530267e1006b7180e9ce1dee4136907b2b65
Headers show

Commit Message

Peter Huewe Sept. 29, 2009, 1:24 a.m. UTC
From: Peter Huewe <peterhuewe@gmx.de>

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

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Jiri Kosina Sept. 29, 2009, 11:58 a.m. UTC | #1
On Tue, 29 Sep 2009, Peter Hüwe wrote:

> From: Peter Huewe <peterhuewe@gmx.de>
> 
> 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
> 
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> ---
> diff --git a/drivers/hid/hid-twinhan.c b/drivers/hid/hid-twinhan.c
> index b05f602..c40afc5 100644
> --- a/drivers/hid/hid-twinhan.c
> +++ b/drivers/hid/hid-twinhan.c
> @@ -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, thanks.
diff mbox

Patch

diff --git a/drivers/hid/hid-twinhan.c b/drivers/hid/hid-twinhan.c
index b05f602..c40afc5 100644
--- a/drivers/hid/hid-twinhan.c
+++ b/drivers/hid/hid-twinhan.c
@@ -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);
 }