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>
This commit is contained in:

committed by
Dmitry Torokhov

parent
45b2604eaa
commit
98a8413192
@@ -159,15 +159,4 @@ static struct gameport_driver joydump_drv = {
|
||||
.disconnect = joydump_disconnect,
|
||||
};
|
||||
|
||||
static int __init joydump_init(void)
|
||||
{
|
||||
return gameport_register_driver(&joydump_drv);
|
||||
}
|
||||
|
||||
static void __exit joydump_exit(void)
|
||||
{
|
||||
gameport_unregister_driver(&joydump_drv);
|
||||
}
|
||||
|
||||
module_init(joydump_init);
|
||||
module_exit(joydump_exit);
|
||||
module_gameport_driver(joydump_drv);
|
||||
|
Reference in New Issue
Block a user