aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick/cobra.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-04 02:52:27 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-04-04 12:25:44 -0400
commit98a84131926ebafe868c65631b69d4912922211e (patch)
tree1f14309be518ea679b8c963e689718b21355e466 /drivers/input/joystick/cobra.c
parent45b2604eaaa105223ce60117b0482ca8a488f9c4 (diff)
Input: gameport - use module_gameport_driver
This patch converts the drivers in drivers/input/* to use module_gameport_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/cobra.c')
-rw-r--r--drivers/input/joystick/cobra.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/joystick/cobra.c b/drivers/input/joystick/cobra.c
index 3497b87c3d05..65367e44d715 100644
--- a/drivers/input/joystick/cobra.c
+++ b/drivers/input/joystick/cobra.c
@@ -261,15 +261,4 @@ static struct gameport_driver cobra_drv = {
261 .disconnect = cobra_disconnect, 261 .disconnect = cobra_disconnect,
262}; 262};
263 263
264static int __init cobra_init(void) 264module_gameport_driver(cobra_drv);
265{
266 return gameport_register_driver(&cobra_drv);
267}
268
269static void __exit cobra_exit(void)
270{
271 gameport_unregister_driver(&cobra_drv);
272}
273
274module_init(cobra_init);
275module_exit(cobra_exit);