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
@@ -687,15 +687,4 @@ static struct gameport_driver grip_drv = {
|
||||
.disconnect = grip_disconnect,
|
||||
};
|
||||
|
||||
static int __init grip_init(void)
|
||||
{
|
||||
return gameport_register_driver(&grip_drv);
|
||||
}
|
||||
|
||||
static void __exit grip_exit(void)
|
||||
{
|
||||
gameport_unregister_driver(&grip_drv);
|
||||
}
|
||||
|
||||
module_init(grip_init);
|
||||
module_exit(grip_exit);
|
||||
module_gameport_driver(grip_drv);
|
||||
|
Reference in New Issue
Block a user