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

committed by
Dmitry Torokhov

parent
fa7f86d157
commit
65ac9f7a23
@@ -202,19 +202,4 @@ static struct serio_driver mtouch_drv = {
|
||||
.disconnect = mtouch_disconnect,
|
||||
};
|
||||
|
||||
/*
|
||||
* The functions for inserting/removing us as a module.
|
||||
*/
|
||||
|
||||
static int __init mtouch_init(void)
|
||||
{
|
||||
return serio_register_driver(&mtouch_drv);
|
||||
}
|
||||
|
||||
static void __exit mtouch_exit(void)
|
||||
{
|
||||
serio_unregister_driver(&mtouch_drv);
|
||||
}
|
||||
|
||||
module_init(mtouch_init);
|
||||
module_exit(mtouch_exit);
|
||||
module_serio_driver(mtouch_drv);
|
||||
|
Reference in New Issue
Block a user