summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick/twidjoy.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-03 23:50:17 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-04-04 09:25:43 -0700
commit65ac9f7a23c934ee8c40dc20955e75db4924bfea (patch)
tree7baa3439e9b0a774073473cccef6960e7f77bc6e /drivers/input/joystick/twidjoy.c
parentfa7f86d157781515b74d658120552eafd890f4de (diff)
downloadlinux-65ac9f7a23c934ee8c40dc20955e75db4924bfea.tar.bz2
Input: serio - use module_serio_driver
This patch converts the drivers in drivers/input/* to use module_serio_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/twidjoy.c')
-rw-r--r--drivers/input/joystick/twidjoy.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/input/joystick/twidjoy.c b/drivers/input/joystick/twidjoy.c
index 3f4ec73c9553..2556a8193579 100644
--- a/drivers/input/joystick/twidjoy.c
+++ b/drivers/input/joystick/twidjoy.c
@@ -257,19 +257,4 @@ static struct serio_driver twidjoy_drv = {
.disconnect = twidjoy_disconnect,
};
-/*
- * The functions for inserting/removing us as a module.
- */
-
-static int __init twidjoy_init(void)
-{
- return serio_register_driver(&twidjoy_drv);
-}
-
-static void __exit twidjoy_exit(void)
-{
- serio_unregister_driver(&twidjoy_drv);
-}
-
-module_init(twidjoy_init);
-module_exit(twidjoy_exit);
+module_serio_driver(twidjoy_drv);