forked from luck/tmp_suning_uos_patched
Input: amimouse - use module_platform_driver_probe macro
module_platform_driver_probe() eliminates the boilerplate and simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
0442ce1cff
commit
e492fe2751
@ -146,18 +146,6 @@ static struct platform_driver amimouse_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init amimouse_init(void)
|
||||
{
|
||||
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_platform_driver_probe(amimouse_driver, amimouse_probe);
|
||||
|
||||
MODULE_ALIAS("platform:amiga-mouse");
|
||||
|
Loading…
Reference in New Issue
Block a user