Commit e492fe27 authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov

Input: amimouse - use module_platform_driver_probe macro

module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 0442ce1c
...@@ -146,18 +146,6 @@ static struct platform_driver amimouse_driver = { ...@@ -146,18 +146,6 @@ static struct platform_driver amimouse_driver = {
}, },
}; };
static int __init amimouse_init(void) module_platform_driver_probe(amimouse_driver, amimouse_probe);
{
return platform_driver_probe(&amimouse_driver, amimouse_probe);
}
module_init(amimouse_init);
static void __exit amimouse_exit(void)
{
platform_driver_unregister(&amimouse_driver);
}
module_exit(amimouse_exit);
MODULE_ALIAS("platform:amiga-mouse"); MODULE_ALIAS("platform:amiga-mouse");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment