summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-03-15 23:07:02 +0800
committerJiri Kosina <jkosina@suse.cz>2013-03-18 10:51:49 +0100
commitbb64469af5908d89766b116d91c0691fe3c9237a (patch)
tree14f025bab8b9dce61f83fc9c3578f4525873dc91 /drivers/hid
parentfdc5663c1b686caaaeff01f1b0918489536f7d7d (diff)
downloadop-kernel-dev-bb64469af5908d89766b116d91c0691fe3c9237a.zip
op-kernel-dev-bb64469af5908d89766b116d91c0691fe3c9237a.tar.gz
HID: steelseries: 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>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-steelseries.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hid/hid-steelseries.c b/drivers/hid/hid-steelseries.c
index 2ed995c..136d156 100644
--- a/drivers/hid/hid-steelseries.c
+++ b/drivers/hid/hid-steelseries.c
@@ -378,16 +378,5 @@ static struct hid_driver steelseries_srws1_driver = {
.report_fixup = steelseries_srws1_report_fixup
};
-static int __init steelseries_srws1_init(void)
-{
- return hid_register_driver(&steelseries_srws1_driver);
-}
-
-static void __exit steelseries_srws1_exit(void)
-{
- hid_unregister_driver(&steelseries_srws1_driver);
-}
-
-module_init(steelseries_srws1_init);
-module_exit(steelseries_srws1_exit);
+module_hid_driver(steelseries_srws1_driver);
MODULE_LICENSE("GPL");
OpenPOWER on IntegriCloud