mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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:
parent
da3c6647ee
commit
2fd6cf0523
1 changed files with 1 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue