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:
@@ -187,19 +187,4 @@ static struct serio_driver hampshire_drv = {
|
||||
.disconnect = hampshire_disconnect,
|
||||
};
|
||||
|
||||
/*
|
||||
* The functions for inserting/removing us as a module.
|
||||
*/
|
||||
|
||||
static int __init hampshire_init(void)
|
||||
{
|
||||
return serio_register_driver(&hampshire_drv);
|
||||
}
|
||||
|
||||
static void __exit hampshire_exit(void)
|
||||
{
|
||||
serio_unregister_driver(&hampshire_drv);
|
||||
}
|
||||
|
||||
module_init(hampshire_init);
|
||||
module_exit(hampshire_exit);
|
||||
module_serio_driver(hampshire_drv);
|
||||
|
Reference in New Issue
Block a user