aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-08-22 23:06:19 -0400
committerJiri Kosina <jkosina@suse.cz>2013-08-26 07:23:04 -0400
commitc0b20fd9b67a57327074726c60640a957dab91e3 (patch)
tree1960fbb4bdc9fbdacb060cc99906f4f9de75e9dd
parent8cd3c556b5ce58e2a6f9a084711e6fc03f375745 (diff)
HID: use module_hid_driver() to simplify the code
module_hid_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-xinmo.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hid/hid-xinmo.c b/drivers/hid/hid-xinmo.c
index 6153e50d9721..7df5227a7e61 100644
--- a/drivers/hid/hid-xinmo.c
+++ b/drivers/hid/hid-xinmo.c
@@ -57,16 +57,5 @@ static struct hid_driver xinmo_driver = {
57 .event = xinmo_event 57 .event = xinmo_event
58}; 58};
59 59
60static int __init xinmo_init(void) 60module_hid_driver(xinmo_driver);
61{
62 return hid_register_driver(&xinmo_driver);
63}
64
65static void __exit xinmo_exit(void)
66{
67 hid_unregister_driver(&xinmo_driver);
68}
69
70module_init(xinmo_init);
71module_exit(xinmo_exit);
72MODULE_LICENSE("GPL"); 61MODULE_LICENSE("GPL");