i2c: taos-evm: Use module_serio_driver()
Get rid of some boilerplate code by using module_serio_driver(). Signed-off-by: Christoph Jaeger <christophjaeger@linux.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Родитель
da3c6647ee
Коммит
2fd6cf0523
|
@ -311,19 +311,8 @@ static struct serio_driver taos_drv = {
|
|||
.interrupt = taos_interrupt,
|
||||
};
|
||||
|
||||
static int __init taos_init(void)
|
||||
{
|
||||
return serio_register_driver(&taos_drv);
|
||||
}
|
||||
|
||||
static void __exit taos_exit(void)
|
||||
{
|
||||
serio_unregister_driver(&taos_drv);
|
||||
}
|
||||
module_serio_driver(taos_drv);
|
||||
|
||||
MODULE_AUTHOR("Jean Delvare <jdelvare@suse.de>");
|
||||
MODULE_DESCRIPTION("TAOS evaluation module driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
module_init(taos_init);
|
||||
module_exit(taos_exit);
|
||||
|
|
Загрузка…
Ссылка в новой задаче