mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 08:02:56 +00:00
Input: mouse - use macro module_platform_driver()
Commit 940ab88962
introduced a new macro to
save some platform_driver boilerplate code. Use it.
Signed-off-by: JJ Ding <dgdunix@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
840a746be2
commit
4fcdeac5ac
3 changed files with 4 additions and 39 deletions
|
@ -178,18 +178,7 @@ static struct platform_driver gpio_mouse_device_driver = {
|
|||
.owner = THIS_MODULE,
|
||||
}
|
||||
};
|
||||
|
||||
static int __init gpio_mouse_init(void)
|
||||
{
|
||||
return platform_driver_register(&gpio_mouse_device_driver);
|
||||
}
|
||||
module_init(gpio_mouse_init);
|
||||
|
||||
static void __exit gpio_mouse_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&gpio_mouse_device_driver);
|
||||
}
|
||||
module_exit(gpio_mouse_exit);
|
||||
module_platform_driver(gpio_mouse_device_driver);
|
||||
|
||||
MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
|
||||
MODULE_DESCRIPTION("GPIO mouse driver");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue